- 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"}
}
]
}
}
}
}