[ 
https://issues.apache.org/jira/browse/SOLR-17310?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

wei wang updated SOLR-17310:
----------------------------
    Component/s: search

> Configurable LeafSorter to customize segment search order
> ---------------------------------------------------------
>
>                 Key: SOLR-17310
>                 URL: https://issues.apache.org/jira/browse/SOLR-17310
>             Project: Solr
>          Issue Type: New Feature
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: search
>            Reporter: wei wang
>            Priority: Minor
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Lucene's IndexWriterConfig provides the option to sort leaf readers when a 
> custom LeafSorter is provided.   
> [https://github.com/apache/lucene/blob/main/lucene/core/src/java/org/apache/lucene/index/IndexWriterConfig.java#L494]
>  
> The functionality is currently not directly exposed in Solr. One use case is 
> in early termination,  we would like to search the more recent updated 
> segments first.  The SegmentTimeLeafSorter sorts the LeafReaders by time 
> stamp,  so that recent NRT segments can be traversed first.  The feature is 
> enabled by adding the *segmentSort* config in solrconfig.xml.  Without the 
> config, no sorting is applied by default.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to