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

Early termination with index sorting should not set terminated_early in the response #26597

Merged
merged 1 commit into from Sep 26, 2017

Conversation

jimczi
Copy link
Contributor

@jimczi jimczi commented Sep 12, 2017

Early termination with index sorting always return the best top N in the response but set the flag terminated_early in the response. This can be confusing because we use the same flag for terminate_after which on the contrary returns partial results.
This change removes the flag when results are not partial (early termination due to index sorting) and keeps it only when terminate_after is used.

Closes #26408

…in the response

Early termination with index sorting always return the best top N in the response but set the flag `terminated_early`
in the response. This can be confusing because we use the same flag for `terminate_after` which on the contrary returns partial results.
This change removes the flag when results are not partial (early termination due to index sorting) and keeps it only when `terminate_after` is used.

Closes elastic#26408
@jimczi jimczi added :Search/Search Search-related issues that do not fall into other categories >bug v6.0.0 v6.1.0 v7.0.0 labels Sep 12, 2017
Copy link
Member

@martijnvg martijnvg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jimczi jimczi added v6.0.1 and removed v6.0.0 labels Sep 26, 2017
@jimczi jimczi merged commit 74473c1 into elastic:master Sep 26, 2017
@jimczi jimczi deleted the early_terminated_flag branch September 26, 2017 09:37
jimczi added a commit that referenced this pull request Sep 26, 2017
…in the response (#26597)

Early termination with index sorting always return the best top N in the response but set the flag `terminated_early`
in the response. This can be confusing because we use the same flag for `terminate_after` which on the contrary returns partial results.
This change removes the flag when results are not partial (early termination due to index sorting) and keeps it only when `terminate_after` is used.

Closes #26408
jimczi added a commit that referenced this pull request Oct 5, 2017
…in the response (#26597)

Early termination with index sorting always return the best top N in the response but set the flag `terminated_early`
in the response. This can be confusing because we use the same flag for `terminate_after` which on the contrary returns partial results.
This change removes the flag when results are not partial (early termination due to index sorting) and keeps it only when `terminate_after` is used.

Closes #26408
jimczi added a commit that referenced this pull request Oct 5, 2017
@lcawl lcawl added v6.0.0-rc2 and removed v6.0.0 labels Oct 30, 2017
@lcawl lcawl removed the v6.1.0 label Dec 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Search/Search Search-related issues that do not fall into other categories v6.0.0-rc2 v7.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants