Is there a way to prioritize "exact title match" over synonym matches?

Hey there. We have an index that takes advantage of two-way synonyms. The issue we encountered is we had a word “labyrinthitis”, a two-way synonym with “dizziness”. This would rank higher in search results (“labyrinthitis”) than “lab” when a user would type “lab” (which is the preferred result). Wondering if there is an “Algolia” way to rank exact word matches over synonyms?

Hi @atran ! You can follow this guide to learn more about how to handle exact result. In particular, I think the exactOnSingleWordQuery might be relevant for your use case.

Have a good day!

1 Like