lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yonik Seeley <yo...@lucidworks.com>
Subject Re: sorting with lucene 4.3
Date Wed, 31 Jul 2013 19:05:05 GMT
On Wed, Jul 31, 2013 at 2:51 PM, Nicolas Guyot <sfnicow@gmail.com> wrote:
> I have written a quick test to reproduce the slower sorting with numeric DV.
> In this test case, it happens only when reverse sorting.

Right - I bet your numeric field is relatively ordered in the index.
When this happens, there is always one sort order that is less
efficient because the priority queue is constantly finding more
competitive hits as we search through the index.  If you index random
numbers (or in a random order), the discrepancy between the sort order
should disappear.

-Yonik
http://lucidworks.com

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