FAQ
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
document)

(this boosts documents that contain RELATIVELY more query terms)

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

Thanks
John
--
View this message in context: http://www.nabble.com/Similarity-tp22659424p22659424.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupjava-user @
categorieslucene
postedMar 23, '09 at 12:46p
activeMar 23, '09 at 12:46p
posts1
users1
websitelucene.apache.org

1 user in discussion

John atsh: 1 post

People

Translate

site design / logo © 2022 Grokbase