Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve alias support in the percolate api #3420

martijnvg opened this Issue Aug 1, 2013 · 0 comments


None yet
1 participant
Copy link

commented Aug 1, 2013

Support for percolating via an alias is already implemented via #3173, if an alias is resolved to more than one index, then from the response it is impossible to know what id belongs to what concrete index. This can become even a bigger issue if percolate queries with the same id exist in different indices.

For this reason the response needs to be enhanced to include the concrete index per match:

  "matches" : [
         "id" : "1",
         "_index" : "my-index1"

The current format will still be supported by setting percolate_format=ids parameter in the query string. Useful in the case percolation is only executed on just one index.

This issue will also add support for specifying multiple indices in the percolate request:

curl -XGET 'localhost:9200/my-index1,my-index2/my-type/_percolate' -d '...'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.