Re: Boosting non synonyms result

2011-05-17 Thread Paul Libbrecht
I do it the same but do not use the Dismax query which is a lot too unflexible. In CurrikiSolr, I have my own QueryComponent which does all sorts of query expansion: - it expands a simple term query to a query for the text in the stemmed variant and in the unstemmed variant with more boost - it

Re: Boosting non synonyms result

2011-05-17 Thread Markus Jelsma
The only method i can think of is, as you mention, define a second field containing the exact match without synonym expansion. In that case you can just put a larger boost value for matches on that field to rank it higher. Just sort score desc and check debugQuery output before and after. > He

Re: Boosting non synonyms result

2011-05-17 Thread Jonathan Rochkind
I do it with two fields exactly how you say, but then use dismax to boost the non-synonom-ed field higher than the synonym-ed field. That is a lot easier than trying to use a function query, which I'm not sure how to do either. On 5/17/2011 6:45 PM, Dmitriy Shvadskiy wrote: Hello, Is there a

Boosting non synonyms result

2011-05-17 Thread Dmitriy Shvadskiy
Hello, Is there a way to boost the result that is an exact match as oppose to synonym match when using query time synonyms? Given the query John Smith and synonyms Jonathan,Jonathan,John,Jon,Nat,Nathan I'd like result containing John Smith to be ranked higher then Jonathan Smith. My thinking was t