How to find similar documents
问题 How do you find a similar documents of a given document in Lucene. I do not know what the text is i only know what the document is. Is there a way to find similar documents in lucene. I am a newbie so I may need some hand holding. 回答1: you may want to check the MoreLikeThis feature of lucene. MoreLikeThis constructs a lucene query based on terms within a document to find other similar documents in the index. http://lucene.apache.org/java/3_0_1/api/contrib-queries/org/apache/lucene/search