lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: Limiting hit count
Date Fri, 13 Feb 2004 15:10:17 GMT
On Feb 13, 2004, at 9:12 AM, lucene@nitwit.de wrote:
> On Friday 13 February 2004 15:02, Erik Hatcher wrote:
>> Use a HitCollector and grab the first one that comes in, then bail 
>> out.
>>   That should do the trick for getting the first hit only.
>
> According to the API docs I ought to use HitCollector only if I need 
> all
> hits :-) And there's certainly a reason for it - I don't think that 
> this will
> speed up the search ;)

Did you measure it?

Are your searches slow?

	Erik


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message