Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: General

Similarity

 

 

Lucene general RSS feed   Index | Next | Previous | View Threaded


john.atsh at gmail

Mar 23, 2009, 5:46 AM

Post #1 of 1 (561 views)
Permalink
Similarity

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-tp22659442p22659442.html
Sent from the Lucene - General mailing list archive at Nabble.com.

Lucene general RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.