# Langdetect aggregations?

**URL:** <https://discuss.elastic.co/t/langdetect-aggregations/89113>\
**Category:** Elasticsearch\
**Created:** [June 12, 2017, 9:20pm UTC](https://discuss.elastic.co/t/langdetect-aggregations/89113 "2017-06-12T21:20:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![adyjayex](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adyjayex/32/15748_2.png) [@adyjayex](https://discuss.elastic.co/u/adyjayex)\
**Post date:** [June 12, 2017, 9:20pm UTC](https://discuss.elastic.co/t/langdetect-aggregations/89113/1 "2017-06-12T21:20:19Z")

</div>

Hello,

I've been trying to use Langdetect to detect the language of individual fields (or of the whole document) and aggregate the detected languages in order to search only for specific languages within our index.

However, I can't seem to be able to aggregate the Langdetect field using any of the examples presented on the github page as well as custom mappings.

Does anyone use Langdetect and have any success with Aggregations on 5.4.0 ?

Thanks!

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [June 13, 2017, 10:20pm UTC](https://discuss.elastic.co/t/langdetect-aggregations/89113/2 "2017-06-13T22:20:00Z")

</div>

Yes, I think it is not possible to use aggregation because of the custom field type. I will look into the issue. See [https://github.com/jprante/elasticsearch-langdetect/issues/70](https://github.com/jprante/elasticsearch-langdetect/issues/70)

---

<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:** [July 11, 2017, 10:20pm UTC](https://discuss.elastic.co/t/langdetect-aggregations/89113/3 "2017-07-11T22:20:25Z")

</div>

Closed on July 11, 2017, 10:20pm UTC

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