lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitriy Shvadskiy <dshvads...@gmail.com>
Subject Boosting non synonyms result
Date Tue, 17 May 2011 22:45:15 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message