Either use the MaxScoreQueryParser [1] or set tie to zero when using a DisMax 
parser.
[1]: 
https://cwiki.apache.org/confluence/display/solr/Other+Parsers#OtherParsers-MaxScoreQueryParser

 
 
-----Original message-----
> From:Burgmans, Tom <tom.burgm...@wolterskluwer.com>
> Sent: Tuesday 3rd February 2015 16:13
> To: solr-user@lucene.apache.org
> Subject: Score results by only the highest scoring term
> 
> Hi All,
> 
> I wonder if it's in some way possible to search for multiple terms like:
> 
> (<term A> OR <term B> OR <term C> OR <term D>)
> 
> and in case a document contains 2 or more of these terms: only the highest 
> scoring term should contribute to the final relevancy score; possibly lower 
> scoring  terms should be discarded from the scoring algorithm.
> 
> Ideally I'd like an operator like ANY:
> 
> (<term A> ANY <term B> ANY <term C> ANY <term D>)
> 
> that has the purpose: return documents, sorted by the score of the highest 
> scoring term.
> 
> Any thoughts about how to achieve this?
> 
> _________________________________
> Tom Burgmans
> 
> 

Reply via email to