# About search result cache

**URL:** <https://discuss.elastic.co/t/about-search-result-cache/10165>\
**Category:** Elasticsearch\
**Created:** [December 24, 2012, 4:49am UTC](https://discuss.elastic.co/t/about-search-result-cache/10165 "2012-12-24T04:49:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chunki\_Calvin\_Lee\_2](https://avatars.discourse-cdn.com/v4/letter/c/b19c9b/32.png) [@Chunki\_Calvin\_Lee\_2](https://discuss.elastic.co/u/Chunki_Calvin_Lee_2)\
**Post date:** [December 24, 2012, 4:49am UTC](https://discuss.elastic.co/t/about-search-result-cache/10165/1 "2012-12-24T04:49:47Z")

</div>

I wonder about ElasticSearch cache policy.

ElasticSearch caches Search result?

If then, ElasticSearch caches what?

If I search query "A OR B",  
Does ElasticSearch cache whether "A OR B" result or "A" result & "B" result  
?

--

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [December 24, 2012, 1:56pm UTC](https://discuss.elastic.co/t/about-search-result-cache/10165/2 "2012-12-24T13:56:37Z")

</div>

Elasticsearch does not cache queries or results.

Elasticsearch caches filters. More precisely, the documents to be filtered  
for constructing the result set of a filtered query.

More, Elasticsearch caches field data for facet and sorting. For this, all  
unique terms in the dictionary of a field is loaded into the heap if it  
participates in a sort or a facet.

Jörg

--

---

<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, 2:58am UTC](https://discuss.elastic.co/t/about-search-result-cache/10165/3 "2017-07-06T02:58:36Z")

</div>


