lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: Limiting Result-Count
Date Thu, 29 Jun 2006 21:12:58 GMT
Try using HitCollector and break out of it when you collect enough documents.  My guess is
that if you are not doing anything crazy with Hits (like looping through the all) this won't
be that much faster than using Hits.

Otis

----- Original Message ----
From: Dominik Bruhn <dominik@dbruhn.de>
To: java-user@lucene.apache.org
Sent: Thursday, June 29, 2006 1:29:31 PM
Subject: Limiting Result-Count

Hy,
how can I limit the result-count of a query in order to save time? I searched 
the web but didn't find a solution.

Thanks
Dominik

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





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