[email protected]
[Top] [All Lists]


Subject: Similarity
From: john atsh
Date: Mon, 23 Mar 2009 05:45:45 -0700 PDT
I want to change slightly the similarity function, in the following way:

Use same cosine similarity as defined by DefaultSimilarity, but multiply the
result score by f, where f is defined as following
f = (# of terms in query that appear also in document) / (# of terms in

(this boosts documents that contain RELATIVELY more query terms)

What's the best way to do it, and how?

View this message in context: 
Sent from the Lucene - Java Users mailing list archive at Nabble.com.

To unsubscribe, e-mail: java-user-unsubscribe@xxxxxxxxxxxxxxxxx
For additional commands, e-mail: java-user-help@xxxxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>
  • Similarity, john atsh <=