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

Consider adding apostrophe tokenfilter #434

Open
missinglink opened this issue Mar 2, 2020 · 1 comment
Open

Consider adding apostrophe tokenfilter #434

missinglink opened this issue Mar 2, 2020 · 1 comment

Comments

@missinglink
Copy link
Member

As reported in pelias/pelias#847, we can improve fuzzy-matching by applying an apostrophe tokenfilter.

https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-apostrophe-tokenfilter.html

@missinglink
Copy link
Member Author

We're currently removing apostrophe characters in the punctuation filter.
The effect of this is to convert mcdonald's => mcdonalds.

I had a play with introducing the apostrophe tokenfilter linked above (and also removing apostrophe from the punctuation filter):
The effect of this is mcdonald's => mcdonald.

What we really need is a method where all three of these compositions are considered equal:

mcdonald's
mcdonalds
mcdonald

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

No branches or pull requests

1 participant