kibana/examples/demo_search
Lukas Olson ef80ebf1bb
[Search service] Add async search strategy (#53057)
* Add async search strategy

* Add async search

* Fix async strategy and add tests

* Move types to separate file

* Revert changes to demo search

* Update demo search strategy to use async

* Add cancellation to search strategies

* Add tests

* Simplify async search strategy

* Move loadingCount to search strategy

* Update abort controller library

* Bootstrap

* Abort when the request is aborted

* Add utility and update value suggestions route

* Fix bad merge conflict

* Update tests

* Move to data_enhanced plugin

* Remove bad merge

* Revert switching abort controller libraries

* Revert package.json in lib

* Move to previous abort controller

* Fix test to use fake timers to run debounced handlers

* Revert changes to example plugin

* Fix loading bar not going away when cancelling

* Call getSearchStrategy instead of passing  directly

* Add async demo search strategy

* Fix error with setting state

* Update how aborting works

* Fix type checks

* Add test for loading count

* Attempt to fix broken example test

* Revert changes to test

* Fix test

* Update name to camelCase

* Fix failing test

* Don't require data_enhanced in example plugin

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-25 15:57:40 -07:00
..
common [Search service] Add async search strategy (#53057) 2020-02-25 15:57:40 -07:00
public [Search service] Add async search strategy (#53057) 2020-02-25 15:57:40 -07:00
server [Search service] Add async search strategy (#53057) 2020-02-25 15:57:40 -07:00
kibana.json [Search service] Add async search strategy (#53057) 2020-02-25 15:57:40 -07:00
package.json
README.md
tsconfig.json

Demo search strategy

This example registers a custom search strategy that simply takes a name string in the request and returns the string Hello {name}

To see the demo search strategy in action, navigate to the Search explorer app.

To run these examples, use the command yarn start --run-examples.