-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Add support for intra-segment search concurrency #13542
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
Merged
Merged
Changes from all commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
e6ee1f6
Add initial support for intra-segment query concurrency
javanna b8e72f3
missing javadocs
javanna c07ae4b
iter
javanna 79b0f10
iter and spotless
javanna 543d9cd
iter
javanna cf7399f
Merge branch 'main' into intra_segment_concurrency
javanna d480868
Less contention on TotalHitCountCollectorManager
javanna c9d52af
Limit max num partitions per segment
javanna 7401e7c
iter
javanna 542e654
iter
javanna f0f4436
Merge branch 'main' into intra_segment_concurrency
javanna d44ceac
Address TestTopDocsCollector failure
javanna 3be1d4f
Remove LeafReaderContextPartition#createFrom
javanna 69ce4f8
Address TestRangeFacet failure
javanna c8d9d07
Remove static LeafReaderContextPartition creation methods
javanna 0d6e6d0
Fix TestBooleanQueryVisitSubscorers failure
javanna 426c4cf
Revert "Fix TestBooleanQueryVisitSubscorers failure"
javanna f6de93e
Revert "Remove static LeafReaderContextPartition creation methods"
javanna c1f69e8
iter
javanna 78bf5a4
expand comment on slicesWithPartitions method
javanna ea86d50
reword changes entry
javanna 51283d2
Merge branch 'main' into intra_segment_concurrency
javanna c26db4b
switch migrate entries
javanna aa696ce
iter
javanna e9c11ac
javadocs
javanna 70f82c8
Merge branch 'main' into intra_segment_concurrency
javanna d3ebb4d
Merge branch 'main' into intra_segment_concurrency
javanna b9cfb8e
iter
javanna 7d63f49
Adjust TestForTooMuchCloning
javanna d42e9c4
adjust facet test
javanna df87326
clean up facets reduce methods
javanna ddad4f0
fix logical OR
javanna 1d66416
Merge branch 'main' into intra_segment_concurrency
javanna df9c7fc
support keepScores merging, re-enable concurrency in those tests
javanna e1ee42b
fix changes entry
javanna ff19f64
update migrate entry
javanna e7205c8
clarify javadocs
javanna 0691c8b
iter
javanna 16b477b
review comments
javanna 4908c58
Merge branch 'main' into intra_segment_concurrency
javanna ce2d3f2
hit count collector manager
javanna e546206
typo
javanna fd295ec
iter
javanna 21aa355
Merge branch 'main' into intra_segment_concurrency
javanna d446359
last clarifications to changes and migrate entries
javanna File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we agree that we should remove this in main, I am going to deprecate it in branch_9x .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I am not too sure it makes sense to deprecate in 9.x, because it is still heavily used and despite there is a variant of it that takes min and max, it is not a replacement yet until intra-segment concurrency is introduced with this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jpountz I've been going back and forth on this a few times. Ideally we would deprecate the method in 9x and give users some notice. It is rather easy to remove usages and deprecate, I only worry about possible custom implementations of the method, because it is not final and subclasses can entirely override its behaviour. Such overrides would be a no-op if we replace all the usages of the deprecated method in 9x, which feels like it breaks stuff potentially. Users would need to immediately switch to overriding the other method instead. If we leave the main usage (IndexSearcher#searchLeaf) behind though, it feels odd that we use a deprecated method in such a core part of search.
I am a bit torn on how to proceed, do you have an opinion?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I opened this after all: #13794 . It deprecates the method but leaves its usages untouched to avoid breaking users that override it.