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

Add count percolate api #3430

martijnvg opened this Issue Aug 2, 2013 · 0 comments


None yet
1 participant
Copy link

martijnvg commented Aug 2, 2013

Add a new percolate api that only returns the number of percolate queries that have matched with the document being percolated. The actual query ids are not included.

The percolate total count will be put in the total field and is the only result that will be returned from the dedicated count apis.

The total field will also be included in the already existing percolate and percolating existing document apis and are equal to the number of matches.

Count percolate api


curl -XGET 'localhost:9200/my-index/my-type/_percolate/count' -d '{
   "doc" : {
       "message" : "some message"


   ... // header
   "total" : 3

Percolate existing document count api


curl -XGET 'localhost:9200/my-index/my-type/1/_percolate/count'


    ... // header
   "total" : 5

@ghost ghost assigned martijnvg Aug 2, 2013

@martijnvg martijnvg closed this in 890d06f Aug 2, 2013

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.