# ES Upgrade, Terms Lookup Cache Keys

**URL:** <https://discuss.elastic.co/t/es-upgrade-terms-lookup-cache-keys/108262>\
**Category:** Elasticsearch\
**Created:** [November 19, 2017, 4:17am UTC](https://discuss.elastic.co/t/es-upgrade-terms-lookup-cache-keys/108262 "2017-11-19T04:17:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thomas\_Doman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomas_doman/32/11409_2.png) [@Thomas\_Doman](https://discuss.elastic.co/u/Thomas_Doman)\
**Post date:** [November 19, 2017, 4:17am UTC](https://discuss.elastic.co/t/es-upgrade-terms-lookup-cache-keys/108262/1 "2017-11-19T04:17:32Z")

</div>

C#, NEST  
I'm in the process of upgrading from ES 1.7.5 to ES 6.0. In my terms lookup queries I set the \_cache\_key so that I'm able to clear it when that cache is impacted by an update. I vaguely remember seeing somewhere that this is no longer necessary in 2.x and later (doc\_values?) but can't find the documentation. I do see that the 6.0 terms lookup documentation makes no mention of it like the 1.5 documentation does but I'd like to verify that ES now handles this scenario for me auto-magically. If so, I can remove all my code that both sets the keys and handling of the invalidation on update which would be fantastic!

---

<div class="post-metadata">

**Author:** ![Thomas\_Doman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomas_doman/32/11409_2.png) [@Thomas\_Doman](https://discuss.elastic.co/u/Thomas_Doman)\
**Post date:** [November 20, 2017, 4:07pm UTC](https://discuss.elastic.co/t/es-upgrade-terms-lookup-cache-keys/108262/2 "2017-11-20T16:07:37Z")

</div>

Found it! The answer is here: [https://www.elastic.co/guide/en/elasticsearch/reference/2.0/breaking\_20\_query\_dsl\_changes.html#\_filter\_auto\_caching](https://www.elastic.co/guide/en/elasticsearch/reference/2.0/breaking_20_query_dsl_changes.html#_filter_auto_caching)

---

<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:** [December 18, 2017, 4:07pm UTC](https://discuss.elastic.co/t/es-upgrade-terms-lookup-cache-keys/108262/3 "2017-12-18T16:07:48Z")

</div>

Closed on December 18, 2017, 4:07pm UTC

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