-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Deboosting of search time synonym matches #49001
Comments
Pinging @elastic/es-search (:Search/Analysis) |
This is a first WIP draft at tackling elastic#49001 to get some feedback. While this approach should solve some of the singel and multi-term cases, I'm not sure if the changes in `blendTerms` are correct. Also some method overwrites might be better moved up the inheritance hierarchy into Lucene, opening this PR mostly for initial discussion.
This is one is actually important, however, I'm more towar having a weighted synonyms, so, I'm in need to have control over the weight of each of the sysnonyms something like this. So, is this possible? |
This has been open for quite a while, and hasn't had a lot of interest. For now I'm going to close this as something we aren't planning on implementing. We can re-open it later if needed. |
Currently, if a search term is expanded via synonym filters, the term that is expanded to it treated the same way as the original search term in terms of search relevancy. For example, if I search for "automobile" and there is a synonym rule to expand this to "car", I can get results matching "car" ranked higher up than matches for the exact search term. Here is a very simple example that illustrates this:
When running this locally on one shard, both results returned have the same score. Ideally we should be able to take the token type of the search term into account and score the "car" match with a slightly lower boost than the one on the exact search term.
The text was updated successfully, but these errors were encountered: