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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]