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 option to Count API to terminate early if a specified count is reached #6876

Closed
areek opened this issue Jul 15, 2014 · 0 comments · Fixed by #6885
Closed

Add option to Count API to terminate early if a specified count is reached #6876

areek opened this issue Jul 15, 2014 · 0 comments · Fixed by #6885

Comments

@areek
Copy link
Contributor

areek commented Jul 15, 2014

It would be nice if the Count API had an option to terminate once a specified count has been reached. This would be a nice enhancement if the purpose of the count request is just to figure out if matching documents exists given a query (as is the case for collate option in PhraseSuggester #3482)

@areek areek self-assigned this Jul 15, 2014
areek added a commit to areek/elasticsearch that referenced this issue Jul 23, 2014
Allow users to control document collection termination, if a specified terminate_after number is
set. Upon setting the newly added parameter, the response will include a boolean terminated_early
flag, indicating if the document collection for any shard terminated early.

closes elastic#6876
areek added a commit that referenced this issue Jul 23, 2014
Allow users to control document collection termination, if a specified terminate_after number is
set. Upon setting the newly added parameter, the response will include a boolean terminated_early
flag, indicating if the document collection for any shard terminated early.

closes #6876
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant