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 14:02:47 GMT

On Feb 13, 2004, at 7:02 AM, lucene@nitwit.de wrote:
> On Friday 13 February 2004 12:18, Julien Nioche wrote:
>> If you want to limit the set of Documents you're querying, you should
>> consider using Filter objects and send it to the searcher along with 
>> your
>> Query.
>
> Hm, hard to find information about Filters...I actually only want the 
> first
> hit:

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.


---------------------------------------------------------------------
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