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 ?
&
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
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
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]>
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]>
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
---
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
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
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
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 ?
10 matches
Mail list logo