lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: Score / Sort question
Date Mon, 19 Mar 2007 01:41:56 GMT

: How do i force SOLR to score documents that contain ALL terms 1st
: before results that contain some of the terms?

generally speaking this is hte result you will usually on random data ...
under the covers Lucene uses TF/IDF based weighting of terms, with a coord
factor that penalizes queries that don't match all clauses -- but i'm sure
it's possible that sometimes the tf is so high and the idf so low, that
the score from one term can dominate.

the only solution to your problem that i can think of is to write a custom
Similarity class where tf and idf are fixed so only the coordFactor


View raw message