鉴于以下映射,我需要获得符合以下条件的结果
- 名字、姓氏、date_of_birth 和 Active = true 的完全匹配或
- 名字、姓氏、Active = true 和 1 个可能的多个电子邮件中的完全匹配或
- 名字、姓氏、Active = true 和 1 个旅行证件号码(可能的倍数)完全匹配
其中电子邮件和旅行证件可以指代项目集合。
    {
    "profile":{
        "properties":{
            "date_of_birth":{
                "type":"date",
                "store":"no"
            },
            "first_name":{
                "type":"string",
                "store":"no"
            },
            "last_name":{
                "type":"string",
                "store":"no"
            },
            "email":{
                "type":"string",
                "store":"no"
            },
            "active":{
                "type":"string",
                "store":"no"
            },
            "travel_document":{
              "properties" : {
                   "countryOfCitizenship" : {"type" : "string"},
                   "countryOfIssue" : {"type" : "string"},
                   "expirationDate" : {"type" : "date"},
                   "nationality" : {"type" : "string"},
                   "number" : {"type" : "string"},
                   "addressLines" : {"type": "string"},
                   "issuedForAreaCode" : {"type": "string"},
                   "type" : {"type": "string"}
                }
            }
        }
    }
}
有没有办法可以在弹性搜索中执行这种搜索?我可以用嵌套查询做到这一点吗?