Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Search service] Use outside application context #48850

Closed
lukasolson opened this issue Oct 21, 2019 · 2 comments
Closed

[Search service] Use outside application context #48850

lukasolson opened this issue Oct 21, 2019 · 2 comments
Labels
Feature:Search Querying infrastructure in Kibana

Comments

@lukasolson
Copy link
Member

We need to create a way to use the new search services outside of the application context (something probably registered inside the start lifecycle of the data plugin).

From #46742 (comment):

a demo of how can i use it in my plugin would be nice (so a plugin that does not register an application)

@lukasolson lukasolson added Feature:Search Querying infrastructure in Kibana Team:AppArch labels Oct 21, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-arch (Team:AppArch)

@lukasolson
Copy link
Member Author

This was actually resolved by #57448. The search function is now exposed in the data plugin search service start contract:

const [coreStart, depsStart] = await core.getStartServices();
const response = await depsStart.data.search.search(request, options).toPromise();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Search Querying infrastructure in Kibana
Projects
None yet
Development

No branches or pull requests

2 participants