-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Closed
Labels
Feature:SearchQuerying infrastructure in KibanaQuerying infrastructure in Kibana
Description
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:
- To initiate the search
- To poll the status on the search (and potentially receive partial results)
- (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:
- Making an initial call to the internal
searchendpoint with the search parameters - Retrieving an ID in the response
- Polling the internal
searchendpoint with the given ID - Returning an observable which emits on each response and completes when the response dictates (i.e.
percentCompletereturns 100) - Sending a cancellation request if the
abortSignalis aborted
Metadata
Metadata
Assignees
Labels
Feature:SearchQuerying infrastructure in KibanaQuerying infrastructure in Kibana