lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mirko Sertic" <>
Subject Aw: Re: Strange performance of Lucene 4.4.0
Date Sun, 08 Sep 2013 13:15:39 GMT

I have to check, but my usecase does not require sorting or even scoring at all. I still do
not get what the difference is...


Gesendet: Sonntag, 08. September 2013 um 12:21 Uhr
Von: "Roberto Ragusa" <>
Betreff: Re: Strange performance of Lucene 4.4.0
On 09/07/2013 04:59 PM, Mirko Sertic wrote:
> Hi@all
> I am getting strange performance measures on Lucene 4.4.0, maybe someone can explain
> The following syntax leads to pretty slow queries on my machine(16ms for every execution):
>, null, theSearcher.getIndexReader().maxDoc());
> but the following syntax leads to an average execution time of 2ms:
>, null, theSearcher.getIndexReader().maxDoc(), new Sort());
> Just by providing an empty Sort() instance, which does not sort at all! The executed
query is a simple TermQuery, the index contains about 2'000'000 documents. This is quite strange..

Are the results sorted in the first case? (maybe by ranking)

Roberto Ragusa mail at

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message