Nested documents and boolean query with Elasticsearch Nested documents and boolean query with Elasticsearch elasticsearch elasticsearch

Nested documents and boolean query with Elasticsearch


A wayaround.

curl -XPOST "http://localhost:9200/must_again/class/_search" -d'{   "query": {      "bool": {         "must_not": [            {               "nested": {                  "path": "teachers",                  "query": {                     "bool": {                        "must": [                           {                              "match": {                                 "teachers.name": "steve"                              }                           }                        ]                     }                  }               }            }         ]      }   }}'

Hope this helps!!