You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Christine Poerschke (Jira)" <ji...@apache.org> on 2024/05/24 15:02:00 UTC

[jira] [Commented] (SOLR-17310) Configurable LeafSorter to customize segment search order

    [ https://issues.apache.org/jira/browse/SOLR-17310?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17849325#comment-17849325 ] 

Christine Poerschke commented on SOLR-17310:
--------------------------------------------

cross-referencing w.r.t. (perhaps) same code and functionality area: SOLR-13681 and SOLR-17310

> 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-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org