In my analyzer pipeline I have a synonyms function.
Let's say that I have the following synonyms
beverage, drink
Now let's say that a user searches for 'beverage', the user will get documents that contain 'beverage' or 'drink' without any preference.
The thing is that I want to give a higher score to documents that contain the original search term ('beverage' in this case) and a lower score to its synonyms ('drink' in this case).
What's the best and cheapest way for doing that?