Re: MoreLikeThis return no results

2008-09-01 Thread davood
Thanks so much for hints, now it works correctly, the problem was with mlt.setMinTermFreq. Many thanks. -- View this message in context: http://www.nabble.com/Re%3A-MoreLikeThis-return-no-results-tp19230763p19256118.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. -

Re: MoreLikeThis return no results

2008-09-01 Thread mark harwood
mber, 2008 14:16:42 Subject: Re: MoreLikeThis return no results Hi, I enabled the TermVector for required fields using following piece of code, Field titleField = new Field("title", title, Field.Store.NO, Field.Index.TOKENIZED, TermVector.YES); and then re-indexed it. But again it s

Re: MoreLikeThis return no results

2008-09-01 Thread Marcelo Ochoa
Hi Dave: MoreLikeThis object has two parameters which controls his functionality: mlt.setMinTermFreq(minTermFreq.intValue()); mlt.setMinDocFreq(minDocFreq.intValue()); By default MinTermFreq is 2, so if your document has no terms with freq greater than 2 will return a query with

Re: MoreLikeThis return no results

2008-09-01 Thread davood
Hi, I enabled the TermVector for required fields using following piece of code, Field titleField = new Field("title", title, Field.Store.NO, Field.Index.TOKENIZED, TermVector.YES); and then re-indexed it. But again it shows no result. I checked the stored documents and they TermVector exists an

Re: MoreLikeThis return no results

2008-08-30 Thread mark harwood
MoreLikeThis needs to find the terms in your doc. It tries to do this by using TermFreqVectors which are stored in the index if you choose to add them at index-time. If you haven't done this then it will fall back to reanalysing the content of the document usings an analyser (despite what the j

Re: Re: MoreLikeThis return no results

2008-08-29 Thread tom
AUTOMATIC REPLY Tom Roberts is out of the office till 2nd September 2008. LUX reopens on 1st September 2008 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: MoreLikeThis return no results

2008-08-29 Thread tom
AUTOMATIC REPLY Tom Roberts is out of the office till 2nd September 2008. LUX reopens on 1st September 2008 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]