# Filtered indices aliases and filters size

**URL:** <https://discuss.elastic.co/t/filtered-indices-aliases-and-filters-size/15381>\
**Category:** Elasticsearch\
**Created:** [January 23, 2014, 3:50pm UTC](https://discuss.elastic.co/t/filtered-indices-aliases-and-filters-size/15381 "2014-01-23T15:50:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yann\_Barraud](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yann_barraud/32/1108_2.png) [@Yann\_Barraud](https://discuss.elastic.co/u/Yann_Barraud)\
**Post date:** [January 23, 2014, 3:50pm UTC](https://discuss.elastic.co/t/filtered-indices-aliases-and-filters-size/15381/1 "2014-01-23T15:50:32Z")

</div>

Hi,

Is there a known limit on terms filters size, or somehow a performance  
issue on specifying tens or a few hundreds of terms within a terms filter  
while defining a filtered alias on an index.

[http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-terms-filter.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-terms-filter.html)  
[http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-aliases.html#filtered](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-aliases.html#filtered)

Regards,  
Yann

--  
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/8676a008-3279-4a60-9f8d-6b64eba38ff6%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/8676a008-3279-4a60-9f8d-6b64eba38ff6%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:** [January 23, 2014, 8:38pm UTC](https://discuss.elastic.co/t/filtered-indices-aliases-and-filters-size/15381/2 "2014-01-23T20:38:42Z")

</div>

Hi Yann,

There is no limit that I know of. An issue that may happen with large terms  
filters is caching: the filter itself is used as a key of the cache and  
comparing large terms filters can be costly. For those large terms filters,  
it is advised to configure a \_cache\_key[1].

[1]

> **[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 Thu, Jan 23, 2014 at 4:50 PM, Yann Barraud [yann.barraud@gmail.com](mailto:yann.barraud@gmail.com)wrote:

> Hi,
> 
> Is there a known limit on terms filters size, or somehow a performance  
> issue on specifying tens or a few hundreds of terms within a terms filter  
> while defining a filtered alias on an index.
> 
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-terms-filter.html)
> 
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-aliases.html#filtered)
> 
> Regards,  
> Yann
> 
> --  
> 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/8676a008-3279-4a60-9f8d-6b64eba38ff6%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/8676a008-3279-4a60-9f8d-6b64eba38ff6%40googlegroups.com)  
> .  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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/CAL6Z4j5%3DtdV83X0-0dgQs-PRhR-zXNL3QruMLPnGUNKWX%2B6AKA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j5%3DtdV83X0-0dgQs-PRhR-zXNL3QruMLPnGUNKWX%2B6AKA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Yann\_Barraud](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yann_barraud/32/1108_2.png) [@Yann\_Barraud](https://discuss.elastic.co/u/Yann_Barraud)\
**Post date:** [January 24, 2014, 4:40pm UTC](https://discuss.elastic.co/t/filtered-indices-aliases-and-filters-size/15381/3 "2014-01-24T16:40:46Z")

</div>

Hi Adrien,

Thanks for answering. I think you saved my project 🙂

Cheers,  
Yann  
Le 23 janv. 2014 21:38, "Adrien Grand" [adrien.grand@elasticsearch.com](mailto:adrien.grand@elasticsearch.com) a  
écrit :

> Hi Yann,
> 
> There is no limit that I know of. An issue that may happen with large  
> terms filters is caching: the filter itself is used as a key of the cache  
> and comparing large terms filters can be costly. For those large terms  
> filters, it is advised to configure a \_cache\_key[1].
> 
> [1]  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-filters.html)
> 
> On Thu, Jan 23, 2014 at 4:50 PM, Yann Barraud [yann.barraud@gmail.com](mailto:yann.barraud@gmail.com)wrote:
> 
> > Hi,
> > 
> > Is there a known limit on terms filters size, or somehow a performance  
> > issue on specifying tens or a few hundreds of terms within a terms filter  
> > while defining a filtered alias on an index.
> > 
> > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-terms-filter.html)
> > 
> > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-aliases.html#filtered)
> > 
> > Regards,  
> > Yann
> > 
> > --  
> > 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/8676a008-3279-4a60-9f8d-6b64eba38ff6%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/8676a008-3279-4a60-9f8d-6b64eba38ff6%40googlegroups.com)  
> > .  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> Adrien Grand
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/e5R5oG\_BZCE/unsubscribe](https://groups.google.com/d/topic/elasticsearch/e5R5oG_BZCE/unsubscribe).  
> To unsubscribe from this group and all its topics, 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/CAL6Z4j5%3DtdV83X0-0dgQs-PRhR-zXNL3QruMLPnGUNKWX%2B6AKA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j5%3DtdV83X0-0dgQs-PRhR-zXNL3QruMLPnGUNKWX%2B6AKA%40mail.gmail.com)  
> .  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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/CA%2BhvuXcVcwPxTu%3D08pK3s50RYDw8JnitREYFGqDFC80HumEhsw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CA%2BhvuXcVcwPxTu%3D08pK3s50RYDw8JnitREYFGqDFC80HumEhsw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 1:54am UTC](https://discuss.elastic.co/t/filtered-indices-aliases-and-filters-size/15381/4 "2017-07-06T01:54:57Z")

</div>


