-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
apply unidirectional synonyms at query-time #411
Comments
a workaround, for now, is to duplicate the token from the left side of the
|
So we've now done this for the |
This is only really relevant for custom user-defined synonyms and doesn't affect stock-standard Pelias. So if a user added a synonym Let's leave this open for now so we remember, I'll try and fix it at some point but it's a relatively low priority because it may not even affect anyone! |
One totally valid fix is just to say we don't support the |
as of today we finally removed all unidirectional synonyms (ones using the
a=>b
syntax) from our default synonyms file 🎉unfortunately, I realized that there is a bug which is preventing those unidirectional synonyms from working properly when users specify them in a custom configuration.
as per the example below, it's possible to index the term "hello" and then not be able to retrieve the document using the term "hello" 🤔
the solution to this problem is to split all the synonyms into two buckets, one for unidirectional synonyms (
a=>b
syntax) and one for bidirectional synonyms (a,b
syntax), we will then need to apply both buckets at index-time and only the unidirectional synonyms at query-time.The text was updated successfully, but these errors were encountered: