# ElasticSearch Search functionality with filesystem cache

**URL:** <https://discuss.elastic.co/t/elasticsearch-search-functionality-with-filesystem-cache/96775>\
**Category:** Elasticsearch\
**Created:** [August 11, 2017, 12:32pm UTC](https://discuss.elastic.co/t/elasticsearch-search-functionality-with-filesystem-cache/96775 "2017-08-11T12:32:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![san88922](https://avatars.discourse-cdn.com/v4/letter/s/ea666f/32.png) [@san88922](https://discuss.elastic.co/u/san88922)\
**Post date:** [August 11, 2017, 12:32pm UTC](https://discuss.elastic.co/t/elasticsearch-search-functionality-with-filesystem-cache/96775/1 "2017-08-11T12:32:18Z")

</div>

Hi Everyone,

I am curious about the search capability of ES, suppose i am indexing bulk data and according to documentation data will be flushed for every 5 minutes(translog\_Flush\_config), and file system cache and translog will be cleared out.

1. Now when i want to search for recently added data (once the fliesystem and translog are cleared), what will be the criteria, will it go and hit Disk?
2. How are the cache related topics like (query, field data,filter cache) can help me to overcome the search delay, if it happens in the above mentioned case?.  
3.whats caching policy of ES, i mean, whats the size configuration of caches(field,query)  
and how long they can be maintained, if i m not updating.  
4.if i want to avoid using caches because of memory consumption issue, how do i ensure that fast performace is maintained with my appication.

Any detailed anser or link will be helpful.

Thanks

---

<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:** [August 24, 2017, 8:39pm UTC](https://discuss.elastic.co/t/elasticsearch-search-functionality-with-filesystem-cache/96775/2 "2017-08-24T20:39:51Z")

</div>

I don't think it is accurate to say that the filesystem cache will be cleared. You can expect that a search on recent data will likely be served from memory.

> [@san88922](#):
>
> if i want to avoid using caches because of memory consumption issue, how do i ensure that fast performace is maintained with my appication.

Truth is that besides the filesystem cache, Elasticsearch tries to not rely too much on caching in order to have good performance. I would just use the defaults.

---

<div class="post-metadata">

**Author:** ![san88922](https://avatars.discourse-cdn.com/v4/letter/s/ea666f/32.png) [@san88922](https://discuss.elastic.co/u/san88922)\
**Post date:** [August 31, 2017, 5:38am UTC](https://discuss.elastic.co/t/elasticsearch-search-functionality-with-filesystem-cache/96775/3 "2017-08-31T05:38:03Z")

</div>

Thanks for the response.

---

<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:** [September 28, 2017, 5:38am UTC](https://discuss.elastic.co/t/elasticsearch-search-functionality-with-filesystem-cache/96775/4 "2017-09-28T05:38:22Z")

</div>

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