On Wednesday 08 March 2006 09:25, [EMAIL PROTECTED] wrote: > Signifies this that method collect can be called for document with score <= > 0 ?
The collect() method is called after next() on the top level Scorer has returned true. In between score() is called on that Scorer to provide the score value, but the score value is not tested. Most Scorers give only positive score values for matching documents. This is implemented in the IndexSearcher.search(...) and Scorer.score(HitCollector) methods. Regards, Paul Elschot > > -----Original Message----- > From: Yonik Seeley [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 07, 2006 6:35 PM > To: [email protected] > Subject: Re: Get only count > Importance: High > > On 3/7/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Can have matching document score equals zero ? > > Yes. Scorers don't generally use "score" to determine if a document > matched the query. > Scores <= 0.0f are currently screened out at the top level search > functions, but not when you use a HitCollector yourself. > > -Yonik > > > > -----Original Message----- > > From: Yonik Seeley [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, March 07, 2006 6:20 PM > > To: [email protected] > > Subject: Re: Get only count > > Importance: High > > > > On 3/7/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > While you added "if (score > 0.0f)". Javadoc contain lines > > > "HitCollector.collect(int,float) is called for every non-zero scoring". > > > > That should probably read "is called for every matching document". > > > > -Yonik > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
