# Redesigned percolate API: Index and percolate

**URL:** <https://discuss.elastic.co/t/redesigned-percolate-api-index-and-percolate/14703>\
**Category:** Elasticsearch\
**Created:** [December 4, 2013, 11:22am UTC](https://discuss.elastic.co/t/redesigned-percolate-api-index-and-percolate/14703 "2013-12-04T11:22:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bernhard\_Berger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bernhard_berger/32/833_2.png) [@Bernhard\_Berger](https://discuss.elastic.co/u/Bernhard_Berger)\
**Post date:** [December 4, 2013, 11:22am UTC](https://discuss.elastic.co/t/redesigned-percolate-api-index-and-percolate/14703/1 "2013-12-04T11:22:55Z")

</div>

I test the new percolate API with ES 1.0.0.beta2.  
Is it possible to index a new document and get all matching percolation  
queries in one request just like in 0.90?

curl -XPUT localhost:9200/test/type1/1?percolate=\* -d '{  
"field1" : "value1"  
}'

The 'percolate'-parameter doesn't seem to be supported anymore.

Or do I have to make a second request just to percolate the new indexed  
document?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/7328e6c5-9998-41fd-b1c1-e7c3fc756ff5%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/7328e6c5-9998-41fd-b1c1-e7c3fc756ff5%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:** [December 4, 2013, 11:30am UTC](https://discuss.elastic.co/t/redesigned-percolate-api-index-and-percolate/14703/2 "2013-12-04T11:30:04Z")

</div>

No. You don't have to index a document to run percolation.  
Percolation is the inverse of indexation:

Basically, you index documents and run a query  
With percolation, you index queries and run a document

If you need to percolate an existing document, then use: [http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-percolate.html#\_percolating\_an\_existing\_document](http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-percolate.html#_percolating_an_existing_document)

Does it help?

Note that new documentation about percolator in 1.0.0 is here: [http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-percolate.html#search-percolate](http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-percolate.html#search-percolate)

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr

Le 4 décembre 2013 at 12:22:58, Bernhard Berger ([bernhardberger3456@gmail.com](mailto:bernhardberger3456@gmail.com)) a écrit:

I test the new percolate API with ES 1.0.0.beta2.  
Is it possible to index a new document and get all matching percolation queries in one request just like in 0.90?

curl -XPUT localhost:9200/test/type1/1?percolate=\* -d '{  
"field1" : "value1"  
}'

The 'percolate'-parameter doesn't seem to be supported anymore.

## Or do I have to make a second request just to percolate the new indexed document?

You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/7328e6c5-9998-41fd-b1c1-e7c3fc756ff5%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/7328e6c5-9998-41fd-b1c1-e7c3fc756ff5%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/etPan.529f123c.580bd78f.bd3d%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.529f123c.580bd78f.bd3d%40MacBook-Air-de-David.local).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Bernhard\_Berger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bernhard_berger/32/833_2.png) [@Bernhard\_Berger](https://discuss.elastic.co/u/Bernhard_Berger)\
**Post date:** [December 4, 2013, 12:18pm UTC](https://discuss.elastic.co/t/redesigned-percolate-api-index-and-percolate/14703/3 "2013-12-04T12:18:18Z")

</div>

Thanks David for the helpful links!  
I have read the docs, but as far as I see, to index AND percolate a new  
document I have now to make two server requests (with the old API this  
works with one request).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/b1824e98-a5e3-4d2c-a062-2601a8398688%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b1824e98-a5e3-4d2c-a062-2601a8398688%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:** [December 4, 2013, 12:18pm UTC](https://discuss.elastic.co/t/redesigned-percolate-api-index-and-percolate/14703/4 "2013-12-04T12:18:58Z")

</div>

Yes. Exactly.

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr

Le 4 décembre 2013 at 13:18:21, Bernhard Berger ([bernhardberger3456@gmail.com](mailto:bernhardberger3456@gmail.com)) a écrit:

Thanks David for the helpful links!  
I have read the docs, but as far as I see, to index AND percolate a new document I have now to make two server requests (with the old API this works with one request).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/b1824e98-a5e3-4d2c-a062-2601a8398688%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b1824e98-a5e3-4d2c-a062-2601a8398688%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/etPan.529f1db2.38437fdb.bd3d%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.529f1db2.38437fdb.bd3d%40MacBook-Air-de-David.local).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:03am UTC](https://discuss.elastic.co/t/redesigned-percolate-api-index-and-percolate/14703/5 "2017-07-06T02:03:20Z")

</div>


