I am trying to search for a text "car race" in an element in my database. I have the following results returned in my result, I need to order the result such that "car race" comes first since its an exact match, followed by other results in order by ascending. Any way to add a high score to "car race" result entry?
first car race
second car race
third car race
car race
first car race again
second car race again
third car race again
If you have elements whose values are as listed, you can use a boost query to increase scores for matches that span the complete element without changing the matching:
The value query says "the match must fill the whole element"; the boost says "match the first query, add in scores from the second, if there is a match to that too".