Nested Datatype Query
The query against nested objects is executed as if the nested documents were indexed independently from the parent document using special query Dsl syntax:
{ "nested" : { "path" : "user", "query" : { "bool" : { "must" : [ { "match" : {"user.first" : "John"} }, { "match" : {"user.last" : "Smith"} } ] } } } }
Additional options available for nested datatype mapping, querying, and aggregation
Last updated
Was this helpful?