lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: LUCENE-6766 index sorting and custom SortField
Date Sun, 14 Aug 2016 22:09:54 GMT
Unfortunately, as of LUCENE-6766, index sorting only supports simple sort
types.  This was needed because Lucene needs to be able to easily serialize
and de-serialize the sort order into the index.

Can you compute your sort criteria and index it as a doc values field and
then sort by that?

Or, patches welcome too ;)

Mike McCandless

http://blog.mikemccandless.com

On Sun, Aug 14, 2016 at 7:19 AM, Andres de la Peña <adelapena@stratio.com>
wrote:

> Hi,
>
> LUCENE-6766 allows to define index sorting on IndexWriterConfig instead of
> defining a SortingMergePolicy. However, the new index sorting only supports
> some types of sort fields, and the old SortingMergePolicy, which didn't
> have this limitation, has been removed.
>
> What should do projects depending on index sort with custom SortFields?
> Ignore the new index writer sorting and build their own old-style sorting
> merge policy?
>
> Thanks,
>
> --
> Andrés de la Peña
>
> Vía de las dos Castillas, 33, Ática 4, 3ª Planta
> 28224 Pozuelo de Alarcón, Madrid
> Tel: +34 91 828 6473 // www.stratio.com // *@stratiobd
> <https://twitter.com/StratioBD>*
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message