Solr automatically scales the scores of fuzzy matches by their distance from an exact match. So, you don't have to change anything.
wunder On May 26, 2012, at 11:52 PM, Gau wrote: > Hi Lori, > > Yeah. I thought exactly of the same solution. Use a copy field and boost > the relevancy of the the exact match. But my question is more broad here. > > For eg, if i have a synonym for James as Jim, Games, Jimmy, Jameson > > And if I normalize the tf, norm, etc factors to 1, on searching for James I > could get Jameson and Jim as my top matches since now the score of all the > documents is 1. Definitely, having a copy field for James and then boosting > relevancy of James would put James as the top result. > > But what after James, the order of results for the other synonyms is still > skewed. By Levenstein distance, I would want Games to be the next set of > results and probably Jameson as next. How do I achieve that? Thats my bigger > question? > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Solr-boost-relevancy-tp3986200p3986280.html > Sent from the Solr - User mailing list archive at Nabble.com.