-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
de45829
commit 218a3c4
Showing
2 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
26 changes: 26 additions & 0 deletions
26
x-pack/plugins/infra/public/utils/use_data_search_request.stories.mdx
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { Meta } from '@storybook/addon-docs/blocks'; | ||
|
||
<Meta title="infra/dataSearch/Overview" /> | ||
|
||
# The `data` plugin and `SearchStrategies` | ||
|
||
The search functionality abstraction provided by the `search` service of the | ||
`data` plugin is pretty powerful: | ||
|
||
- The execution of the request is delegated to a search strategy, which is | ||
executed on the Kibana server side. | ||
- Any plugin can register custom search strategies with custom parameters and | ||
response shapes. | ||
- Requests can be cancelled via an `AbortSignal`. | ||
- Partial responses can be returned as they become available if the search | ||
takes longer. | ||
|
||
# Working with `data.search.search` in the Browser | ||
|
||
The following chapters describe a set of React components and hooks that aim to | ||
make it easy to take advantage of these characteristics from client-side React | ||
code. | ||
|
||
## Issuing new requests | ||
|
||
|