Skip to content

add typo tolerance to Meilisearch 101 #1683

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

Merged
merged 8 commits into from
Jun 14, 2022

Conversation

maryamsulemani97
Copy link
Contributor

closes #1678

@maryamsulemani97 maryamsulemani97 requested review from dichotommy and guimachiavelli and removed request for dichotommy June 8, 2022 09:52
@maryamsulemani97 maryamsulemani97 marked this pull request as ready for review June 8, 2022 09:52
- Disable typos on specific words
- Disable typos on specific attributes

Meilisearch accepts one typo for query terms containing `5` or more characters by default. If you search the movies index for `swaj`, you will not get any results.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we be referring to 5 as 5? On a quick read I briefly thought that 5 was a search term.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I used 5 here because the typo tolerance guide mostly uses backticks for number of characters

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it makes sense to use backticks in the context of typo tolerance since we're speaking indirectly about the value of minWordSizeForTypos.

- Disable typos on specific words
- Disable typos on specific attributes

Meilisearch accepts one typo for query terms containing `5` or more characters by default. If you search the movies index for `swaj`, you will not get any results.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it makes sense to use backticks in the context of typo tolerance since we're speaking indirectly about the value of minWordSizeForTypos.

Copy link
Contributor

@dichotommy dichotommy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks for adding it 🙌🏻 🏄🏻 🌊

@maryamsulemani97
Copy link
Contributor Author

bors merge

@bors
Copy link
Contributor

bors bot commented Jun 14, 2022

Build succeeded:

@bors bors bot merged commit e20888c into master Jun 14, 2022
@bors bors bot deleted the add-typo-tolerance-to-meilisearch101 branch June 14, 2022 13:33
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.

Add typo tolerance to Meilisearch 101
3 participants