lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Rochkind <>
Subject Re: Boosting non synonyms result
Date Tue, 17 May 2011 22:52:40 GMT
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 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 to do it by defining 2 fields: 1 with query time synonyms
> and 1 without and sort by a function query of a non-synonym field. Is it
> even possible? I can't quite figure out the syntax for this.
> I'm using Solr 3.1.
> Thanks,
> Dmitriy

View raw message