Yonik Seeley-2-2 wrote:
> 
> Depends on the larger context of what you are trying to do.
> Do you still want the idf and length norm relevancy factors?  If not,
> use a filter, or boost the particular clause with 0.
> 

I do want the other relevancy factors.. ie boost, phrase-boosting etc but I
just want to make it so that only unique terms in the query contribute to
the overall score.

For example:

Query: "foo"
Doc1: "foo bar baz"
Doc2: "foo foo bar"

The above documents should have the same score.

Query "foo baz"
Doc1: "foo bar baz"
Doc2: "foo foo bar"

In this example Doc1 should be scored higher because it has 2 unique terms
that match


-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/Similarity-tp920366p920530.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to