Shortcut query phase using the results of other shards (#51852)#53659
Merged
jimczi merged 6 commits intoelastic:7.xfrom Mar 18, 2020
Merged
Shortcut query phase using the results of other shards (#51852)#53659jimczi merged 6 commits intoelastic:7.xfrom
jimczi merged 6 commits intoelastic:7.xfrom
Conversation
This commit, built on top of elastic#51708, allows to modify shard search requests based on informations collected on other shards. It is intended to speed up sorted queries on time-based indices. For queries that are only interested in the top documents. This change will rewrite the shard queries to match none if the bottom sort value computed in prior shards is better than all values in the shard. For queries that mix top documents and aggregations this change will reset the size of the top documents to 0 instead of rewriting to match none. This means that we don't need to keep a search context open for this shard since we know in advance that it doesn't contain any competitive hit.
Collaborator
|
Pinging @elastic/es-search (:Search/Search) |
jimczi
added a commit
to jimczi/elasticsearch
that referenced
this pull request
Mar 17, 2020
This change adapts the serialization checks to 7.7.0 in order to cope with elastic#53659. Note that this commit also disables the bwc tests temporarily in order to be able to merge elastic#53659 first. Relates elastic#51852
jimczi
added a commit
that referenced
this pull request
Mar 18, 2020
Merged
jimczi
added a commit
that referenced
this pull request
Mar 18, 2020
This change restores the bwc tests now that #53659 is merged.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #51852