lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From luc...@nitwit.de
Subject Re: Limiting hit count
Date Fri, 13 Feb 2004 12:02:14 GMT
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:
			
public BitSet bits(IndexReader reader) throws IOException
{
	BitSet bs = new BitSet(1); 
	bs.set(1);
	return bs;
}

...doesn't work (i.e. returns nothing rather than all hits).

Timo

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