Hi,

we are using some of the latest features of lucene for sorting which are
very cool but we are facing some issues with the numerical sort:

We need two kinds of sort: numerical and lexical.
For the lexical we are using SortedDocValuesField and for the numerical we
use NumericDocValuesField.
The codec is set to use the DiskDocValuesFormat for all our DV.

Since we can return some very large result set, we use the searchAfter
method for efficient 'deep-paging', like mentioned in the documentation.


When sorting numerically, the search seems to take a bit of a while
compared to the lexically sorted search.
Also when sorting numerically the result is sorted within each page but no
globally as opposed to the lexical sorted search.

>From my understanding, a SortedDocValuesField is sorted while indexing but
not the NumericDocValuesField which is why we are facing those issues in
our implementation. Is that correct ?

What would be the best approach in our case for the numerical sorting and
is there anything we are missing?

Thanks,
Nicolas

Reply via email to