# Getting a percolator query

**URL:** <https://discuss.elastic.co/t/getting-a-percolator-query/10381>\
**Category:** Elasticsearch\
**Created:** [January 17, 2013, 1:17am UTC](https://discuss.elastic.co/t/getting-a-percolator-query/10381 "2013-01-17T01:17:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryanogle](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ryanogle/32/2404_2.png) [@ryanogle](https://discuss.elastic.co/u/ryanogle)\
**Post date:** [January 17, 2013, 1:17am UTC](https://discuss.elastic.co/t/getting-a-percolator-query/10381/1 "2013-01-17T01:17:47Z")

</div>

I have created a percolator query using the standard:

curl -XPUT localhost:9200/\_percolator/test/kuku ...

Now assume its some time later, and I can't remember what the query was, so  
I want to be able to GET and return the query that was created. Is there a  
way to GET the existing query to see what the query structure is?

Thanks.

--

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 17, 2013, 9:18am UTC](https://discuss.elastic.co/t/getting-a-percolator-query/10381/2 "2013-01-17T09:18:33Z")

</div>

Just:

curl -XGET localhost:9200/\_percolator/test/kuku

If you need to get the full list of existing percolators, search for it:

curl -XGET localhost:9200/\_percolator/\_search?q=\*

HTH

Le 17 janvier 2013 à 02:17, ryano [ryanogle79@gmail.com](mailto:ryanogle79@gmail.com) a écrit :

> I have created a percolator query using the standard:
> 
> curl -XPUT localhost:9200/\_percolator/test/kuku ...
> 
> Now assume its some time later, and I can't remember what the query was, so I  
> want to be able to GET and return the query that was created. Is there a way  
> to GET the existing query to see what the query structure is?
> 
> Thanks.
> 
> --

--  
David Pilato  
[http://www.scrutmydocs.org/](http://www.scrutmydocs.org/)  
[http://dev.david.pilato.fr/](http://dev.david.pilato.fr/)  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

--

---

<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:55am UTC](https://discuss.elastic.co/t/getting-a-percolator-query/10381/3 "2017-07-06T02:55:59Z")

</div>


