# Is there a way to return bi-grams in aggregation?

**URL:** <https://discuss.elastic.co/t/is-there-a-way-to-return-bi-grams-in-aggregation/1400>\
**Category:** Elasticsearch\
**Created:** [May 27, 2015, 2:47pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-return-bi-grams-in-aggregation/1400 "2015-05-27T14:47:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stevezieglerva](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stevezieglerva/32/415_2.png) [@Stevezieglerva](https://discuss.elastic.co/u/Stevezieglerva)\
**Post date:** [May 27, 2015, 2:47pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-return-bi-grams-in-aggregation/1400/1 "2015-05-27T14:47:10Z")

</div>

I know that the terms and significant-terms aggregations can return single words indexed in a field. Is there a way to return bi-grams in an aggregation?

---

<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 6, 2017, 12:11am UTC](https://discuss.elastic.co/t/is-there-a-way-to-return-bi-grams-in-aggregation/1400/2 "2017-07-06T00:11:35Z")

</div>


