# Term Length when doing aggregations

**URL:** <https://discuss.elastic.co/t/term-length-when-doing-aggregations/21355>\
**Category:** Elasticsearch\
**Created:** [December 22, 2014, 4:45pm UTC](https://discuss.elastic.co/t/term-length-when-doing-aggregations/21355 "2014-12-22T16:45:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bkamiche](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bkamiche/32/14559_2.png) [@bkamiche](https://discuss.elastic.co/u/bkamiche)\
**Post date:** [December 22, 2014, 4:45pm UTC](https://discuss.elastic.co/t/term-length-when-doing-aggregations/21355/1 "2014-12-22T16:45:36Z")

</div>

Is there any way to set the mininum term length for aggregations?

I mean, I need aggregations of words with a minimum length of 3 characters  
for example, also is there any wait to have an skip word list?

Bruno

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/3a5b8d6d-b36c-4063-aa73-799407c7ae6a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3a5b8d6d-b36c-4063-aa73-799407c7ae6a%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [December 22, 2014, 4:56pm UTC](https://discuss.elastic.co/t/term-length-when-doing-aggregations/21355/2 "2014-12-22T16:56:10Z")

</div>

If you have this requirement, I suspect that the reason is that you are  
indexing some free text and would like to exclude meaningless terms from  
the analysis? If yes then the best way to solve this issue would be to use  
a `length` token filter at indexing time in order to not index these terms  
at all:

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

On Mon, Dec 22, 2014 at 5:45 PM, Bruno Kamiche [bkamiche@gmail.com](mailto:bkamiche@gmail.com) wrote:

> Is there any way to set the mininum term length for aggregations?
> 
> I mean, I need aggregations of words with a minimum length of 3 characters  
> for example, also is there any wait to have an skip word list?
> 
> Bruno
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/3a5b8d6d-b36c-4063-aa73-799407c7ae6a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3a5b8d6d-b36c-4063-aa73-799407c7ae6a%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/3a5b8d6d-b36c-4063-aa73-799407c7ae6a%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/3a5b8d6d-b36c-4063-aa73-799407c7ae6a%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
Adrien Grand

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j5RwkUzR\_5rmnQ\_bTS%2BxzWsapPdyYc0PXG0CipiasmePQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j5RwkUzR_5rmnQ_bTS%2BxzWsapPdyYc0PXG0CipiasmePQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:42am UTC](https://discuss.elastic.co/t/term-length-when-doing-aggregations/21355/3 "2017-07-06T00:42:19Z")

</div>

Closed on July 6, 2017, 12:42am UTC


