# Count property ocurrence in documents

**URL:** <https://discuss.elastic.co/t/count-property-ocurrence-in-documents/122165>\
**Category:** Elasticsearch\
**Created:** [March 1, 2018, 11:08pm UTC](https://discuss.elastic.co/t/count-property-ocurrence-in-documents/122165 "2018-03-01T23:08:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kunde](https://avatars.discourse-cdn.com/v4/letter/k/898d66/32.png) [@kunde](https://discuss.elastic.co/u/kunde)\
**Post date:** [March 1, 2018, 11:08pm UTC](https://discuss.elastic.co/t/count-property-ocurrence-in-documents/122165/1 "2018-03-01T23:08:01Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 29, 2018, 11:08pm UTC](https://discuss.elastic.co/t/count-property-ocurrence-in-documents/122165/2 "2018-03-29T23:08:03Z")

</div>

Closed on March 29, 2018, 11:08pm UTC

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