Re: Get only count

2006-03-08 Thread Paul Elschot
ley [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 07, 2006 6:35 PM > To: java-user@lucene.apache.org > Subject: Re: Get only count > Importance: High > > On 3/7/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Can have matching document score equals zero ? &

RE: Get only count

2006-03-08 Thread anton
Signifies this that method collect can be called for document with score <= 0 ? -Original Message- From: Yonik Seeley [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 07, 2006 6:35 PM To: java-user@lucene.apache.org Subject: Re: Get only count Importance: High On 3/7/06, [EMAIL PROTEC

Re: Get only count

2006-03-07 Thread Yonik Seeley
ons, 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: java-user@lucene.apache.org > Subject: Re: Get only count > Importance: High > > On 3/7/06, [EM

RE: Get only count

2006-03-07 Thread anton
Can have matching document score equals zero ? -Original Message- From: Yonik Seeley [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 07, 2006 6:20 PM To: java-user@lucene.apache.org Subject: Re: Get only count Importance: High On 3/7/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]>

RE: Get only count

2006-03-07 Thread anton
Can have matching document score equals zero ? -Original Message- From: Yonik Seeley [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 07, 2006 6:20 PM To: java-user@lucene.apache.org Subject: Re: Get only count Importance: High On 3/7/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]>

Re: Get only count

2006-03-07 Thread Yonik Seeley
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 ---

RE: Get only count

2006-03-07 Thread anton
While you added "if (score > 0.0f)". Javadoc contain lines "HitCollector.collect(int,float) is called for every non-zero scoring". -Original Message- From: Eric Jain [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 07, 2006 5:08 PM To: java-user@lucene.apache.or

RE: Get only count

2006-03-07 Thread anton
While you added "if (score > 0.0f)". Javadoc contain lines "HitCollector.collect(int,float) is called for every non-zero scoring". -Original Message- From: Eric Jain [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 07, 2006 5:08 PM To: java-user@lucene.apache.or

Re: Get only count

2006-03-07 Thread Eric Jain
Anton Potehin wrote: Now I create new search for get number of results. For example: IndexSearcher is = ... Query q = ... numberOfResults = Is.search(q).length(); Can I accelerate this example ? And how ? Perhaps something like: class CountingHitCollector implements HitCollector { pu

Get only count

2006-03-07 Thread Anton Potehin
Now I create new search for get number of results. For example: IndexSearcher is = ... Query q = ... numberOfResults = Is.search(q).length(); Can I accelerate this example ? And how ?