I was wondering if there is any solution for this.
Currently I expand my results to match the synonyms at query time.

So if I entered James, I would get results for Jim, Gomes, Game etc as they
would be expanded by matching the synonyms for James. But then since this is
just a one word match, tf, idf and other parameters dont make sense. I have
reset those factors to 1. Hence the results I get have an equal score.

What I really want to do is, sort these results by Levenstein Distance
without using ~ sign. The issue in using ~ sign is, if I have a synonym
which is radically different (say Greg for James), if I use James~0, Greg
would not even match closely with James and the number of results returned
would be less than the actual number of synonym matches.

So my usecase is, without reducing the number of results, I want to sort
them by Levenstein Distance, or closest string match to the original query

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Relevancy-ranking-for-synonym-matches-tp3986634.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to