Unregister a percolator query?

classic Classic list List threaded Threaded
3 messages Options
Rio
Reply | Threaded
Open this post in threaded view
|

Unregister a percolator query?

Rio
Hey,

I've been looking around the API, but couldn't find a method to
unregister a percolator query.  Is this possible?

-Mario
Reply | Threaded
Open this post in threaded view
|

Re: Unregister a percolator query?

Benjamin Devèze
Hey, 

since the registered percolator queries are just docs in an index you can unregister a percolator query as you delete a document in standard indexes, something like:

curl -XDELETE localhost:9200/_percolator/test/foo
Reply | Threaded
Open this post in threaded view
|

Re: Unregister a percolator query?

Benjamin Devèze
Ok I have just opened a pull request to the doc to make sure it is clear how to unregister a percolator query.