-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Add new x-pack endpoints to track the progress of a search asynchronously #49931
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 73 commits
Commits
Show all changes
81 commits
Select commit
Hold shift + click to select a range
750a81d
Add new x-pack endpoints to asynchronously track the progress of a se…
jimczi c28766c
notify partial reduce even on top-docs query
jimczi 4bfafb4
fix npe
jimczi 3ace355
use a single object named response in the xcontent serialization of t…
jimczi 5d000ca
delete frozen search response automatically
jimczi 1cd2a9a
add integration tests
jimczi 52085bb
simplify schema for the .async-search index
jimczi da7329d
switch to true random uuuids
jimczi 20c24a0
iter
jimczi 438a7b0
replace waitUntil with assertBusy
jimczi 5a907b9
add a security layer that restricts the usage of the async search API…
jimczi a1eac14
Merge branch 'master' into async_search
jimczi 2180dde
fix checkstyle
jimczi be0ba05
fix double clean
jimczi 3c1ffdd
iter
jimczi 8434d4d
Merge branch 'master' into async_search
jimczi b1d2414
add more logging
jimczi 542fff2
replace routing with preference in get requests
jimczi 177e303
iter
jimczi baa498d
validate the index name when receiving a search id
jimczi 10a0d66
Merge branch 'master' into async_search
jimczi fe5c150
add authentication test
jimczi ec8cdf2
Merge branch 'master' into async_search
jimczi b4fa0de
fix block plugin to throw exceptions in createWeight rather than toQuery
jimczi 17c0602
remove clean_on_completion option after the initial submit
jimczi 8e5229c
Merge branch 'master' into async_search
jimczi 93189d3
move shard stats in a _shards section for partial response
jimczi d03b940
address review
jimczi 96a29d9
Merge branch 'master' into async_search
jimczi 7ffb1dd
address review
jimczi 9930ccd
unused import
jimczi 28fd67c
Merge branch 'master' into async_search
jimczi 9d98706
line len
jimczi 6c5288a
Merge branch 'master' into async_search
jimczi 9056b87
address review
jimczi 8a69a21
add more tests
jimczi 78c2ca4
remove unrelated change
jimczi 5eb7148
fix nocommit
jimczi fb3364f
add more statistics to the search progress listener (number of skippe…
jimczi 1e102fb
Replace generic thread pool execution with asynchronous listener that…
jimczi 139d56a
Merge branch 'master' into async_search
jimczi dc6daa8
fix checkstyle
jimczi 5e410d3
fix wrong assert
jimczi eb7ba8a
Expose the logic to cancel task when the rest channel is closed
jimczi 6ae7903
address review
jimczi 159ed81
plug the automatic cancel of search if the rest channel is closed whe…
jimczi a529db0
Merge branch 'master' into async_search
jimczi 19d89f9
handle expiration time on a per request basis
jimczi 373af3a
use a single replica for the hidden index
jimczi 75601ca
Merge branch 'master' into async_search
jimczi 936cc97
Merge branch 'master' into async_search
jimczi 4237122
iter
jimczi 4b53aad
do not set id twice
jimczi 434b491
change expectation in test now that we use one replica by default
jimczi 15de81a
Merge branch 'master' into async_search
jimczi 0f86649
fix x-pack user to allow restricted indicesé
jimczi 3b9b89e
cleanup
jimczi b52a85a
iter
jimczi 6a1c98d
Allow x-pack user to manage async-search indices
jimczi c068667
Merge branch 'master' into async_search
jimczi 1df46f8
another big iter
jimczi aa85e2d
Merge branch 'master' into async_search
jimczi 05d9638
small fix after merging master
jimczi e0e2072
checkstyle
jimczi 8bce32f
Merge branch 'master' into async_search
jimczi 33f921e
restore test
jimczi b903d0e
fix more test
jimczi 7612748
iter
jimczi 2721348
Merge branch 'master' into async_search
jimczi e9b7add
address review and plug the new async_search origin
jimczi 3e8ba58
unused import
jimczi cd6f3f2
ensure that the task is unregistered before returning the final respo…
jimczi 20aa0fe
checkstyle
jimczi 05e2209
Merge branch 'master' into async_search
jimczi 415c910
address review
jimczi 91699d5
unused import
jimczi 20d3f66
Merge branch 'master' into async_search
jimczi e3bea16
fix rest API reference to the outdated 304 response status
jimczi 8727385
remove last_version parameter
jimczi 315bb49
rephrase rest option after review
jimczi 806ae8f
Merge branch 'master' into async_search
jimczi 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
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
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.
Uh oh!
There was an error while loading. Please reload this page.