Hi ,

We have a index that has multiple segments generated with continuous
updates.  There is always a large dominant segment after index rebuild,
then many small segments are generated with continuous updates.  At query
time we apply early termination with EarlyTerminatingCollector
https://github.com/apache/solr/blob/d9ddba3ac51ece953d762c796f62730e27629966/solr/core/src/java/org/apache/solr/search/EarlyTerminatingCollector.java
,
which triggers EarlyTerminatingCollectorException in SolrIndexSearcher
https://github.com/apache/solr/blob/d9ddba3ac51ece953d762c796f62730e27629966/solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.java#L281
.
We see a problem that the limit can be reached within the dominant segment
alone (seems it is always traversed first) while documents with recent
updates in the newer segments doesn't get a chance to be scored.  Is it
possible to customize the segment visiting order in Solr so that the latest
generated segments are searched first?  Any suggestion is appreciated.

Thanks,
Wei

Reply via email to