{ "query": { "bool_query": { "must": [ { "nested_query": { "path": "order.shipping_addresses", "query": { "bool_query": { "must": [ { "bool_query": { "must": [ { "term_query": { "fields": [ "order.shipping_addresses.first_name" ], "operator": "is", "values": [ "John" ] } } ] } }, { "bool_query": { "must": [ { "term_query": { "fields": [ "order.shipping_addresses.last_name" ], "operator": "is", "values": [ "Doe" ] } } ] } } ] } }, "score_mode": "avg" } } ] } } }
Property | Type | Constraints | Description |
---|---|---|---|
path |
String | mandatory=true, nullable=false | |
query |
Query {BoolQuery, FilteredQuery, MatchAllQuery, NestedQuery, TermQuery, TextQuery} | mandatory=true, nullable=false | |
score_mode |
Enum {avg, total, max, none} |