Hi Lucene community,

Our users could do very heavy searches and they are able to change the
sorting criteria multiple times after getting the results. We collect all
of them, this is important for our use case, disabling scoring if the
result size is too large to make the search faster. Currently we have our
own multi-thread sorting code using DocValues (one instance per thread) to
do this after the results are returned, so we don't have to run the heavy
searches again.

We are upgrading from Lucene 6.6 to 7.x and DocValues access is not random
anymore, but our custom sorting code was based on that. So we are
considering to stop using custom sorting and to use internal Lucene
sorting, but we need to change the sorting multiple times after getting the
TopDocs results. Is this possible? I searched the docs, but was just able
to find out how to sort at the same time the search is done using
IndexSearcher.search(..., Sort) methods.

Thanks in advance,
Luís Nassif

Reply via email to