Spin-off from parent issue:
We should discuss about how many threads should be spawned. If you have an index with many segments, even small ones, I think only the larger segments should be separate threads, all others should be handled sequentially. So maybe add a maxThreads cound, then sort the IndexReaders by maxDoc and then only spawn maxThreads-1 threads for the bigger readers and then one additional thread for the rest?
Migrated from LUCENE-2840 by Uwe Schindler (@uschindler), updated May 09 2016
Parent: #3911
Spin-off from parent issue:
Migrated from LUCENE-2840 by Uwe Schindler (@uschindler), updated May 09 2016
Parent: #3911