posted 8 years ago
Hi,
We use spring data elastic search.
We use multimatch query to search against multiple fields.
We use PHRASE_PREFIX for phrase match.
Now, we would like to add boosting for exact match on nickName( boosting only if exact match ).
For example, when i search for Baskar, if there is a exact match on nickName, it should be ordered first in the result. If there is no exact match, then firstName should be given boosting. I tried boosting like below.
Boosting doesnt seem to be working. Also not sure, how to add boosting only on exact match on a field.
Thanks,
Baskar.S