Just wondering why these two queries give different results. Hoping someone can explain.
The one that works
{
"query": {
"bool": {
"must_not": {
"nested": {
"path": "breadcrumbs",
"query": {
"exists": {
"field": "breadcrumbs"
}
}
}
}
}
}
}
and
The one that doesnt
{
"query":{
"nested":{
"path":"breadcrumbs",
"query":{
"bool":{
"must_not":[
{
"exists":{
"field":"breadcrumbs"
}
}
]
}
}
}
}
}