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

Typo search? #103

Closed
Krystus opened this issue Mar 16, 2020 · 2 comments
Closed

Typo search? #103

Krystus opened this issue Mar 16, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@Krystus
Copy link

Krystus commented Mar 16, 2020

Algolia from the start allow for typo in search results. How can I set this in Scout Elasticsearch? It's something from elasticsearch config or I can manipulate it from Laravel config file?

I don't know how to name it exacly but I'm looking for something like searchable attributes configuration, ranking and sorting and typo tolerance.

@Krystus Krystus added the enhancement New feature or request label Mar 16, 2020
@Krystus
Copy link
Author

Krystus commented Mar 16, 2020

I think my question part about typo tolerance will be related to Fuzzy Query:
https://www.elastic.co/guide/en/elasticsearch/reference/5.3/query-dsl-fuzzy-query.html#query-dsl-fuzzy-query

Don't know tho where to start with it.

@matchish
Copy link
Owner

matchish commented Mar 17, 2020

The fastest way to start is using fuzzy operator
https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html

$results = Book::search('elasticearch~');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants