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

[Search service] Add async search strategy #48811

Closed
lukasolson opened this issue Oct 21, 2019 · 1 comment · Fixed by #53057
Closed

[Search service] Add async search strategy #48811

lukasolson opened this issue Oct 21, 2019 · 1 comment · Fixed by #53057
Assignees
Labels
Feature:Search Querying infrastructure in Kibana

Comments

@lukasolson
Copy link
Member

lukasolson commented Oct 21, 2019

Background

The folks on the Elasticsearch team are currently implementing the building blocks necessary for async search. Compared to traditional synchronous search which consists of a single request, this will consist of multiple requests to Elasticsearch:

  1. To initiate the search
  2. To poll the status on the search (and potentially receive partial results)
  3. (Conditionally) To cancel the search

We need to build out the internals in Kibana to support these types of search requests.

Implementation

As of #46742, we now have the groundwork necessary for creating different search strategies. This issue is specifically about creating a partial (or abstract) asynchronous search strategy that can be used in other search strategies.

The async search strategy will be a client-side strategy (similar to the sync search strategy) that is responsible for the following:

  1. Making an initial call to the internal search endpoint with the search parameters
  2. Retrieving an ID in the response
  3. Polling the internal search endpoint with the given ID
  4. Returning an observable which emits on each response and completes when the response dictates (i.e. percentComplete returns 100)
  5. Sending a cancellation request if the abortSignal is aborted
@lukasolson lukasolson added Feature:Search Querying infrastructure in Kibana Team:AppArch labels Oct 21, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-arch (Team:AppArch)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Search Querying infrastructure in Kibana
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants