I'm not sure that title is descriptive enough, but here is the situation.
I have languages in my mappings like this:
{
....
"description": {
"properties": {
"en": {
"type": "keyword"
},
"es": {
"type": "keyword"
},
"jp": {
"type": "keyword"
}
}
}
}
Not all documents have languages, so I want to know how I can use an aggregator that tells me how many documents have those properties.