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

[Elasticsearch-connector] Autocomplete suggestions #743

Merged
merged 12 commits into from
May 9, 2022

Conversation

joemcelroy
Copy link
Member

@joemcelroy joemcelroy commented May 5, 2022

This PR adds autocomplete functionality when the developer uses the elasticsearch-connector. This uses Searchkit autocomplete suggestors (https://searchkit.co/docs/core/reference/searchkit-sdk/query-autocomplete) which behind the scenes, uses the bool prefix query and completion suggestor in Elasticsearch query DSL.

Ive updated the documentation for both the elasticsearch connector page and the elasticsearch tutorial page.

@elasticdocs
Copy link
Collaborator

elasticdocs commented May 6, 2022

🚀 Built docs-elastic-co successfully!

Issues? Visit #next-docs in Slack

@joemcelroy joemcelroy marked this pull request as ready for review May 6, 2022 11:29
@joemcelroy joemcelroy enabled auto-merge (squash) May 6, 2022 11:36
docs/tutorials-elasticsearch.mdx Outdated Show resolved Hide resolved
examples/sandbox/src/pages/root.js Outdated Show resolved Hide resolved
docs/tutorials-elasticsearch.mdx Show resolved Hide resolved
@yakhinvadim
Copy link
Contributor

I cannot trigger query suggestions locally, do we only have result suggestions in the elasticsearch example?
image

@joemcelroy
Copy link
Member Author

I cannot trigger query suggestions locally, do we only have result suggestions in the elasticsearch example?

Try a US state
image

@joemcelroy joemcelroy merged commit df684eb into elastic:master May 9, 2022
joemcelroy added a commit to joemcelroy/search-ui that referenced this pull request Jan 10, 2023
* use searchkit suggestions feature for elasticsearch

* Merge branch 'master' of github.com:elastic/search-ui into autocomplete

* documentation + make hits size configurable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants