# How to clear the cache for a specific query?

**URL:** https://discuss.elastic.co/t/how-to-clear-the-cache-for-a-specific-query/98027
**Category:** Elasticsearch
**Created:** [August 23, 2017, 8:25am UTC](https://discuss.elastic.co/t/how-to-clear-the-cache-for-a-specific-query/98027 "2017-08-23T08:25:20Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![henrilabarre](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/henrilabarre/32/16909_2.png) [@henrilabarre](https://discuss.elastic.co/u/henrilabarre)
#### Post date: [August 23, 2017, 8:25am UTC](https://discuss.elastic.co/t/how-to-clear-the-cache-for-a-specific-query/98027/1 "2017-08-23T08:25:20Z")

</div>

Hi simple question : is it possible to clear/refresh the cache for a specific query?

Thanks for your help

Best

---

<div class="post-metadata">

### Author: ![thiago](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thiago/32/32096_2.png) [@thiago](https://discuss.elastic.co/u/thiago)
#### Post date: [September 7, 2017, 6:09am UTC](https://discuss.elastic.co/t/how-to-clear-the-cache-for-a-specific-query/98027/2 "2017-09-07T06:09:18Z")

</div>

You can't. Clear Cache API only allows at most at index level. See [https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-clearcache.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-clearcache.html)

---

<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: [October 5, 2017, 6:09am UTC](https://discuss.elastic.co/t/how-to-clear-the-cache-for-a-specific-query/98027/3 "2017-10-05T06:09:24Z")

</div>

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