mirror of
https://github.com/elastic/kibana.git
synced 2025-06-28 11:05:39 -04:00
* [Search] Add request context and asScoped pattern * Update docs * Unify interface for getting search client * Update examples/search_examples/server/my_strategy.ts Co-authored-by: Anton Dosov <dosantappdev@gmail.com> * Review feedback * Fix checks * Fix CI * Fix security search * Fix test * Fix test for reals * Fix types Co-authored-by: Anton Dosov <dosantappdev@gmail.com>
1.4 KiB
1.4 KiB
Home > kibana-plugin-plugins-data-server > ISearchStart
ISearchStart interface
Signature:
export interface ISearchStart<SearchStrategyRequest extends IKibanaSearchRequest = IEsSearchRequest, SearchStrategyResponse extends IKibanaSearchResponse = IEsSearchResponse>
Properties
Property | Type | Description |
---|---|---|
aggs | AggsStart |
|
asScoped | (request: KibanaRequest) => ISearchClient |
|
getSearchStrategy | (name?: string) => ISearchStrategy<SearchStrategyRequest, SearchStrategyResponse> |
Get other registered search strategies by name (or, by default, the Elasticsearch strategy). For example, if a new strategy needs to use the already-registered ES search strategy, it can use this function to accomplish that. |
searchSource | { asScoped: (request: KibanaRequest) => Promise<ISearchStartSearchSource>; } |