Redesigned percolate API: Index and percolate

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.
To view this discussion on the web visit 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.

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

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

--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr

Le 4 décembre 2013 at 12:22:58, Bernhard Berger (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.
To view this discussion on the web visit 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.

--
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.
To view this discussion on the web visit 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.

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.
To view this discussion on the web visit 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.

Yes. Exactly.

--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr

Le 4 décembre 2013 at 13:18:21, Bernhard Berger (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.
To view this discussion on the web visit 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.

--
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.
To view this discussion on the web visit 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.