How do I go about fetching all documents w/o any objects in a field?
I have the following mapping:
"properties" : {
"name": {
"type": "text"
},
"nestedArray": {
"type": "nested",
"properties": {
"prop1": {
"type": "text"
},
"prop2": {
"type": "text"
}
}
}
}
and I want to get all documents where "nestedArray" is empty or doesn't exist.
I'm using elasticSearch 5.0