# Terms vs Terms lookup filter

**URL:** <https://discuss.elastic.co/t/terms-vs-terms-lookup-filter/1881>\
**Category:** Elasticsearch\
**Created:** [June 3, 2015, 10:31pm UTC](https://discuss.elastic.co/t/terms-vs-terms-lookup-filter/1881 "2015-06-03T22:31:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssergio197](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@ssergio197](https://discuss.elastic.co/u/ssergio197)\
**Post date:** [June 3, 2015, 10:31pm UTC](https://discuss.elastic.co/t/terms-vs-terms-lookup-filter/1881/1 "2015-06-03T22:31:31Z")

</div>

As stated in Elasticsearch documentation:

> When it’s needed to specify a terms filter with a lot of terms it can be beneficial to fetch those term values from a document in an index

Are there any recommendation on what is considered "a lot"? When should one switch to terms lookup?  
10 terms? 100? 1000?

---

<div class="post-metadata">

**Author:** ![Jason\_Wee](https://avatars.discourse-cdn.com/v4/letter/j/7ea924/32.png) [@Jason\_Wee](https://discuss.elastic.co/u/Jason_Wee)\
**Post date:** [June 6, 2015, 2:46pm UTC](https://discuss.elastic.co/t/terms-vs-terms-lookup-filter/1881/2 "2015-06-06T14:46:36Z")

</div>

until the query response take seconds or node in the cluster imminent to show sign of problem.

---

<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:09am UTC](https://discuss.elastic.co/t/terms-vs-terms-lookup-filter/1881/3 "2017-07-06T00:09:12Z")

</div>


