# Percolator queries get lost after restart

**URL:** <https://discuss.elastic.co/t/percolator-queries-get-lost-after-restart/68165>\
**Category:** Elasticsearch\
**Created:** [December 6, 2016, 11:41am UTC](https://discuss.elastic.co/t/percolator-queries-get-lost-after-restart/68165 "2016-12-06T11:41:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![oachoor](https://avatars.discourse-cdn.com/v4/letter/o/8edcca/32.png) [@oachoor](https://discuss.elastic.co/u/oachoor)\
**Post date:** [December 6, 2016, 11:41am UTC](https://discuss.elastic.co/t/percolator-queries-get-lost-after-restart/68165/1 "2016-12-06T11:41:26Z")

</div>

Hello,

All percolator queries disappear from the index after restarting Elasticsearch.

For now all percolator queries are stored in the database, then a command is triggered to recreate these queries whenever Elasticsearch get restarted.

I'm looking for some insights on how to restore these documents.

Get query : GET my\_index/.percolator/1

Google is not helpful at this point.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)\
**Post date:** [December 6, 2016, 12:52pm UTC](https://discuss.elastic.co/t/percolator-queries-get-lost-after-restart/68165/2 "2016-12-06T12:52:24Z")

</div>

Hi @oachoor,

this sounds very odd.

Can you please double-check with the [docs of the percolator API](https://www.elastic.co/guide/en/elasticsearch/reference/2.4/search-percolate.html) (I'm assuming you're on 2.x)? If the problem still persists can you please post a self-contained minimal and reproducible example here?

Daniel

---

<div class="post-metadata">

**Author:** ![oachoor](https://avatars.discourse-cdn.com/v4/letter/o/8edcca/32.png) [@oachoor](https://discuss.elastic.co/u/oachoor)\
**Post date:** [December 11, 2016, 7:32pm UTC](https://discuss.elastic.co/t/percolator-queries-get-lost-after-restart/68165/3 "2016-12-11T19:32:22Z")

</div>

Thanks @danielmitterdorfer,

Sorry for not specifying my Elasticsearch version, I'm using 1.7.5 !

May bad, there was a command that resets all queries, all works quite fine.

---

<div class="post-metadata">

**Author:** ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)\
**Post date:** [December 12, 2016, 7:43am UTC](https://discuss.elastic.co/t/percolator-queries-get-lost-after-restart/68165/4 "2016-12-12T07:43:54Z")

</div>

Hi @oachoor,

Glad to hear that it works now. 🙂

Daniel

---

<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:** [January 9, 2017, 7:44am UTC](https://discuss.elastic.co/t/percolator-queries-get-lost-after-restart/68165/5 "2017-01-09T07:44:06Z")

</div>

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