Problem finding similar documents with MoreLikeThis method.

2006-07-19 Thread Davide
Hi, I used the method MoreLikeThis (in search.similar package) of Lucene to find similar documents, but the result is 0 documents also when I index more times the same document. I don't understand why the search doesn't work... Here I give you the code I used: -

Re: Problem finding similar documents with MoreLikeThis method.

2006-07-19 Thread mark harwood
match on Cheers Mark - Original Message From: Davide <[EMAIL PROTECTED]> To: java-user@lucene.apache.org Sent: Wednesday, 19 July, 2006 9:40:31 AM Subject: Problem finding similar documents with MoreLikeThis method. Hi, I used the method MoreLikeThis (in search.similar package) o

Re: Problem finding similar documents with MoreLikeThis method.

2006-07-19 Thread Davide
mark harwood wrote: > Looks like the class defaults to only searching a field called "contents". > > Either: > a) call setFieldNames() with null to force the class to use a list of all > indexed fields derived from your IndexReader > or > b) call setFieldNames() with the explicit shortlist of fi

Re: Problem finding similar documents with MoreLikeThis method.

2006-07-19 Thread mark harwood
e file and MoreLikeThis would therefore read nothing. - Original Message From: Davide <[EMAIL PROTECTED]> To: java-user@lucene.apache.org Sent: Wednesday, 19 July, 2006 11:28:38 AM Subject: Re: Problem finding similar documents with MoreLikeThis method. mark harwood wrote: > Looks like

Re: Problem finding similar documents with MoreLikeThis method.

2006-07-19 Thread Davide
quot; isn't the same object as "fileReader" is it? > If so, that could be positioned at the end of the file and MoreLikeThis would > therefore read nothing. > > > > - Original Message > From: Davide <[EMAIL PROTECTED]> > To: java-user@lucene.apac

Re: Problem finding similar documents with MoreLikeThis method.

2006-07-19 Thread mark harwood
al Message From: Davide <[EMAIL PROTECTED]> To: java-user@lucene.apache.org Sent: Wednesday, 19 July, 2006 11:55:54 AM Subject: Re: Problem finding similar documents with MoreLikeThis method. Thanks Mark, Yes "fr" is fileReader but I don't think is positioned at the end o

Re: Problem finding similar documents with MoreLikeThis method.

2006-07-19 Thread Davide
mark harwood wrote: > Does your index have only the one document? > > MoreLikeThis will only generate queries with terms that occur in more than > "minDocFreq" (default setting is 5). > > This is to avoid the large overheads associated with searching for very > common words in your example tex

Re: Problem finding similar documents with MoreLikeThis method.

2006-07-21 Thread Martin Braun
Hello, inspired by this thread, I also tried to implement a MoreLikeThis search. But I have the same Problem of a null query. I did set the Fieldname to a Field that is stored in the Index. But "like" just returns null. Here is my Code: Hits hits = this.is.search(new Ter

Re: Problem finding similar documents with MoreLikeThis method.

2006-07-21 Thread mark harwood
. - Original Message From: Martin Braun <[EMAIL PROTECTED]> To: java-user@lucene.apache.org Sent: Friday, 21 July, 2006 11:09:40 AM Subject: Re: Problem finding similar documents with MoreLikeThis method. Hello, inspired by this thread, I also tried to implement a MoreLikeThis searc

Re: Problem finding similar documents with MoreLikeThis method.

2006-07-21 Thread Martin Braun
he example doc which may produce tokens that do not match those of the > indexed content. Use setAnalyzer() to ensure they are in sync. > > > > > - Original Message > From: Martin Braun <[EMAIL PROTECTED]> > To: java-user@lucene.apache.org > Sent: Frid