[ https://issues.apache.org/jira/browse/LUCENE-9330?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17087821#comment-17087821 ]
Uwe Schindler commented on LUCENE-9330: --------------------------------------- Thanks. And in the index we just save the name like for codecs. It would just read the name and then call SortFieldProvider.forName(). > Make SortField responsible for index sorting > -------------------------------------------- > > Key: LUCENE-9330 > URL: https://issues.apache.org/jira/browse/LUCENE-9330 > Project: Lucene - Core > Issue Type: Sub-task > Reporter: Alan Woodward > Priority: Major > Time Spent: 0.5h > Remaining Estimate: 0h > > Index sorting is currently handled inside Sorter and MultiSorter, with > hard-coded implementations dependent on SortField types. This means that you > can't sort by custom SortFields, and also that the logic for handling > specific sort types is split between several unrelated classes. > SortFields should instead be able to implement their own index sorting > methods. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org