Count property ocurrence in documents

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.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.