CTsiddharth
CTsiddharth

Reputation: 907

Lucene to perform document similarity

I have made the code to find the similarity between two documents by finding their tf and then their cosine values . But when i was looking at the standard examples on lucene , every program had made use of an index . My process involves a comparision between one reference document and other documents from a folder .

Do u think i should use indexing ?

Upvotes: 2

Views: 851

Answers (1)

Mikos
Mikos

Reputation: 8553

checkout the MoreLikeThis class.

Upvotes: 1

Related Questions