-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Add streaming search with configurable scoring modes #19176
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
Open
atris
wants to merge
70
commits into
opensearch-project:main
Choose a base branch
from
atris:streaming-scoring-clean
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 40 commits
Commits
Show all changes
70 commits
Select commit
Hold shift + click to select a range
d8a9424
Add streaming search with configurable scoring modes
atris 3fe4f52
add javadocs
atris 0b4d6a2
Fix changelog
atris f46f224
Fix forbidden APIs
atris 9251736
Intermediate commit
atris ca8f639
Working intermediate commit
atris b8be3f6
Get streaming infra working
atris 9cbdcbc
Phase 2
atris e967492
Intermediate commit
atris 357848d
working commit
atris a30df2a
Working commit 2
atris c0d2a06
Cleanup
atris 0e298e0
More cleanup
atris 5061f09
Add streaming search with scoring using Hoeffding bounds
atris ac28752
Cleanup
atris 3f78994
Add spotless output
atris 9973de3
more cleanup
atris 5edfe3c
Update per comments
atris 6a4d92e
More cleanup
atris df7ad7b
Fix forbidden API issue
atris c084b56
Merge branch 'main' into streaming-scoring-clean
atris ad9c30d
Fix build issues
atris b4b16b0
More shenanigans
atris cbf228d
Remove confidence based streaming
atris dfcbbed
More cleanup
3d90216
Make spotless changes
dc5e1e8
Intermittent commit
atris 938951f
4 to go
atris 9233200
use global ordinals; fix per-leaf reset; enable under concurrent sear…
atris 14f81b1
Fix more tests
atris a6a21b0
More tests fixes and cleanup
atris d751f73
Fix reindexing tests
atris cd0f276
Some tests pass
atris 169bc33
Fix FlushModeResolver tests
atris 1da8e37
Yet more fixes
atris b202193
Cleanup
atris 4ce9a97
Merge remote-tracking branch 'origin/main' into streaming-scoring-clean
atris b4ef9e8
Fix compilation errors and merge conflicts after upstream merge
atris f851389
Spotless clean up
atris ae1b22f
Remove forbidden APIs
atris c967cbb
Sigh more test fixes
atris aceb756
More fixes
atris 774588a
Spotless fixes
atris ae6c911
Yet more fixes
atris d0510cd
More cleanup
atris 5352427
Miscellaneous refactoring
atris 201110a
More refactor
atris 3e1079a
Explicitly set partial to true
atris 2fbd384
Revert silent drop of partial packets
atris edeabe5
Spotless changes
atris c204273
Merge branch 'main' into streaming-scoring-clean
atris 5c095cf
Cleanup
atris 6af9270
Fix serialization issue
atris 87a3712
Streaming multiple partial results at coordinator and test fixes
b2f1903
Merge branch 'main' into streaming-scoring-clean
atris 6d822bf
Multi shard failing tests
atris 49cbe0f
More misc fixes
atris a72741d
Remove StreamingPerformanceBenchmarkTests.java to address reviewer fe…
737d8a4
Cleanup
0f5c5c2
Revert SearchProgressListener API break for source compatibility
6fc677b
Cleanup
b7f3128
More cleanup
e3fe3ae
Merge origin/main into streaming-scoring-clean
2e09c6b
Add missing javadoc
e9c1472
Remove transport and bound-provider changes from streaming PR
0092c49
More cleanup
0998491
Remove Streaming Search metrics
582a4c3
Trim unrelated plugin and reindex test churn from streaming PR
208eed3
MOre cleanup
560c347
Yet more cleanup
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
26 changes: 26 additions & 0 deletions
26
server/src/main/java/org/opensearch/action/search/PreviewFirstPartialReceiver.java
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| /* | ||
| * SPDX-License-Identifier: Apache-2.0 | ||
| * | ||
| * The OpenSearch Contributors require contributions made to | ||
| * this file be licensed under the Apache-2.0 license or a | ||
| * compatible open source license. | ||
| */ | ||
|
|
||
| package org.opensearch.action.search; | ||
|
|
||
| /** | ||
| * Marker interface for ActionListeners that can receive the first partial response | ||
| * in streaming preview-first mode. This is a temporary interface for OSB benchmarking. | ||
| * | ||
| * @opensearch.internal | ||
| */ | ||
| public interface PreviewFirstPartialReceiver { | ||
|
|
||
| /** | ||
| * Called when the first partial response is available. | ||
| * Implementation should send the response and cancel the search task. | ||
| * | ||
| * @param partial the first partial search response | ||
| */ | ||
| void onPartialResponse(SearchResponse partial); | ||
| } |
Oops, something went wrong.
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.
Why did we remove it?