# Enquiry on Aggregations regarding Case Differences

**URL:** <https://discuss.elastic.co/t/enquiry-on-aggregations-regarding-case-differences/104203>\
**Category:** Elasticsearch\
**Created:** [October 17, 2017, 8:13am UTC](https://discuss.elastic.co/t/enquiry-on-aggregations-regarding-case-differences/104203 "2017-10-17T08:13:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ong](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ong/32/40766_2.png) [@Ong](https://discuss.elastic.co/u/Ong)\
**Post date:** [October 17, 2017, 8:13am UTC](https://discuss.elastic.co/t/enquiry-on-aggregations-regarding-case-differences/104203/1 "2017-10-17T08:13:52Z")

</div>

I have a set of documents consisting of unstructured text with an "Entities" attribute. This attribute contains a list of entities which were extracted from the unstructured text by an entity extractor.

When performing aggregations on this "Entities" field, I noticed that the same word will be repeated if it has a different case e.g. Washington and WASHINGTON will both appear

What should I do to just display an entity regardless of the difference in case?  
Or is there a way to standardise the cases?

Also, does Aggregations work on analysed text or does it only work on keyword fields?

---

<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:** [November 14, 2017, 8:14am UTC](https://discuss.elastic.co/t/enquiry-on-aggregations-regarding-case-differences/104203/2 "2017-11-14T08:14:50Z")

</div>

Closed on November 14, 2017, 8:14am UTC

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