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

Comments

Projects
None yet
1 participant
@areek
Copy link
Contributor

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

Search & Count: Add option to early terminate doc collection
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 areek closed this in #6885 Jul 23, 2014

areek added a commit that referenced this issue Jul 23, 2014

Search & Count: Add option to early terminate doc collection
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
You can’t perform that action at this time.