Please read the book Lucene in action to get your answer. I remember that the author gives an example on TermFreqVector and a book like this example
On Mon, Dec 21, 2009 at 5:12 PM, Phan The Dai <thienthanhom...@gmail.com>wrote: > Hello Dinh, > Thank you very much for your answer, > > Before examize deeply Class "MoreLikeThis", I have got one more issue: > To work with my idea, > I need implementing a Vector Space Model by using Lucene Library. > so that I can compare every document in the SET of Docs > with a query (or include several terms, long as text document). > > "MoreLikeThis" can do it with the same mechanism? > If not, please show me how to implement a Lucene query that including many > terms. > > Again, thank you much! > > > On Mon, Dec 21, 2009 at 5:55 PM, Dinh <pcd...@gmail.com> wrote: > > > Have you taken a look at MoreLikeThis > > > > > > > http://lucene.apache.org/java/2_4_0/api/org/apache/lucene/search/similar/MoreLikeThis.html > > > > Regards, > > > > Dinh > > > > my mission is that finding in the SET what are tops of similar documents > > > with this query. > > > > > > > > > -- > > Spica Framework: http://code.google.com/p/spica > > http://www.twitter.com/pcdinh > > http://groups.google.com/group/phpvietnam > > > -- Weiwei Wang Alex Wang 王巍巍 Room 403, Mengmin Wei Building Computer Science Department Gulou Campus of Nanjing University Nanjing, P.R.China, 210093 Homepage: http://cs.nju.edu.cn/rl/weiweiwang