Skip to content

Latest commit

 

History

History
23 lines (22 loc) · 651 Bytes

NestedDatatypeQuery.md

File metadata and controls

23 lines (22 loc) · 651 Bytes

Nested Datatype Querying

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