Sofiya Strochyk <s...@interlogic.com.ua> wrote:
> 5. Yes, docValues are enabled for the fields we sort on
> (except score which is an internal field); [...]

I am currently working on
https://issues.apache.org/jira/browse/LUCENE-8374
which speeds up DocValues-operations for indexes with many documents.

What "many" means is hard to say, but as can be seen in the JIRA, Tim Underwood 
sees a nice speed up for faceting with his 80M doc index. Hopefully it can also 
benefit your 40M doc (per shard) index with sorting on (I infer) multiple 
DocValued fields. I'd be happy to assist, should you need help with the patch.

- Toke Eskildsen

Reply via email to