lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grant Ingersoll <gsing...@apache.org>
Subject Re: Hits Max # of documents?
Date Mon, 01 Dec 2008 11:45:15 GMT
I'm not sure about .NET, but there should be a version of the search()  
method that returns a TopDocs instance.

Looks like:  TopDocs td = searcher.search(query, int)
where the int is the number of results you want back, in your case,  
Integer.MAX_VALUE


-Grant

On Dec 1, 2008, at 6:38 AM, Ian Vink wrote:

> (I'm using Lucene.NET but the APIs are close enough)
> I'd like the search to always return all documents always. I notice  
> that it
> 'seems'  to return a percentage of them.
>
> Hits myHits = searcher.search(query);
>
> Is what I use.
>
> Is there a way to force the searcher to give me everything?
>
> Ian

--------------------------
Grant Ingersoll

Lucene Helpful Hints:
http://wiki.apache.org/lucene-java/BasicsOfPerformance
http://wiki.apache.org/lucene-java/LuceneFAQ











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


Mime
View raw message