[skip ci] [WIP] Data access service in NP #45058
Closed
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.
[skip-ci] NP version of #38737
** Note the final PR will likely not have all the sample plugins.
Overview
Introduces two new extension points, one on the client side and one on the server side, both called
Search strategies
for now for lack of better terms.New Plugins
search (OSS)
registerClientSearchStrategyProvider
registerSearchStrategyContext
addSearchStrategyProvider
registerSeverSearchStrategyProvider
?serverStrategy
attribute to know which backend to use.es_search (OSS)
which would just internally use the above code on the client side.
async_search (commercial)
percentComplete
reaches 100.percentComplete
.demo_data_search (sample plugin, relies on xpack plugin)
ASYNC_SEARCH_STRATEGY
plugin which is part of x-pack.time_chunk_es_search (sample plugin, relies on xpack plugin)
ES_SEARCH_STRATEGY
plugin.ASYNC_SEARCH_STRATEGY
plugin which is part of x-pack.kbn_tp_search_explorer (sample plugin)
A sample plugin with working examples, showcasing various plugins that extend and use the search plugin.
Playground
Run via
yarn start --plugin-path test/plugin_functional/plugins/demo_data_search/ --plugin-path test/plugin_functional/plugins/kbn_tp_search_explorer/ --plugin-path test/plugin_functional/plugins/time_chunk_es_search
to see the data explorer plugin.Resolves #43371.