# How long does ElasticSearch store the in memory index of percolator?

**URL:** <https://discuss.elastic.co/t/how-long-does-elasticsearch-store-the-in-memory-index-of-percolator/64445>\
**Category:** Elasticsearch\
**Created:** [October 31, 2016, 12:32pm UTC](https://discuss.elastic.co/t/how-long-does-elasticsearch-store-the-in-memory-index-of-percolator/64445 "2016-10-31T12:32:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![oded](https://avatars.discourse-cdn.com/v4/letter/o/48db29/32.png) [@oded](https://discuss.elastic.co/u/oded)\
**Post date:** [October 31, 2016, 12:32pm UTC](https://discuss.elastic.co/t/how-long-does-elasticsearch-store-the-in-memory-index-of-percolator/64445/1 "2016-10-31T12:32:31Z")

</div>

Hey I'm using ElasticSearch version 1.7.  
The percolator documentation says:  
"At percolate time, the document specified in the request gets parsed into a Lucene document and is stored in a in-memory Lucene index."

I would like to know for how the following:

1. For how long does the index exist?
2. Is there any caching of the percolated documents (is the index re-created at each request) ?
3. Is the document also persisted in any way?

The reason I'm asking is because the content of the percolator request is confidential and I would like to know if after the request it could be available by queries or any other way.

Thanks

---

<div class="post-metadata">

**Author:** ![mvg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mvg/32/98890_2.png) [@mvg](https://discuss.elastic.co/u/mvg)\
**Post date:** [October 31, 2016, 4:17pm UTC](https://discuss.elastic.co/t/how-long-does-elasticsearch-store-the-in-memory-index-of-percolator/64445/2 "2016-10-31T16:17:53Z")

</div>

> [@oded](#):
>
> 1. For how long does the index exist?

For the lifespan of the entire percolator request.

> [@oded](#):
>
> 1. Is there any caching of the percolated documents (is the index re-created at each request) ?

No, there is not.

> [@oded](#):
>
> 1. Is the document also persisted in any way?

No, the memory index is cleaned after the percolator request has been executed.

So one percolate request can never see the content of the other percolate request.

---

<div class="post-metadata">

**Author:** ![oded](https://avatars.discourse-cdn.com/v4/letter/o/48db29/32.png) [@oded](https://discuss.elastic.co/u/oded)\
**Post date:** [November 1, 2016, 4:49pm UTC](https://discuss.elastic.co/t/how-long-does-elasticsearch-store-the-in-memory-index-of-percolator/64445/3 "2016-11-01T16:49:31Z")

</div>

Thanks !

---

<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 5, 2017, 10:07pm UTC](https://discuss.elastic.co/t/how-long-does-elasticsearch-store-the-in-memory-index-of-percolator/64445/4 "2017-07-05T22:07:47Z")

</div>

Closed on July 5, 2017, 10:07pm UTC


