I want to filter data from elasic search document like documents which is having blank list. HOw can i achieve that. Suppose i want this results.
1) { name:'vipul', gender:[] }
this is having blank list
I want to filter data from elasic search document like documents which is having blank list. HOw can i achieve that. Suppose i want this results.
1) { name:'vipul', gender:[] }
this is having blank list
You can combine a bool
query with a exists
query like so:
"bool": {
"must_not": [
{
"exists": {
"field": "gender"
}
}
]
}