# How to aggregate similar type of data in same bucket?

**URL:** <https://discuss.elastic.co/t/how-to-aggregate-similar-type-of-data-in-same-bucket/127417>\
**Category:** Elasticsearch\
**Created:** [April 10, 2018, 5:38am UTC](https://discuss.elastic.co/t/how-to-aggregate-similar-type-of-data-in-same-bucket/127417 "2018-04-10T05:38:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![iamrajatroy](https://avatars.discourse-cdn.com/v4/letter/i/e480ec/32.png) [@iamrajatroy](https://discuss.elastic.co/u/iamrajatroy)\
**Post date:** [April 10, 2018, 5:38am UTC](https://discuss.elastic.co/t/how-to-aggregate-similar-type-of-data-in-same-bucket/127417/1 "2018-04-10T05:38:46Z")

</div>

i have some data in a field for ex -

1- xyz is not searchable  
2- unable to search xyz  
3- xyz not searchable

currently all go in 3 different bucket. but i want it to put it on same bucket due to max occurence of the word xyz.

please help.

---

<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:** [May 8, 2018, 5:45am UTC](https://discuss.elastic.co/t/how-to-aggregate-similar-type-of-data-in-same-bucket/127417/2 "2018-05-08T05:45:32Z")

</div>

Closed on May 8, 2018, 5:45am UTC

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