You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2020/05/22 12:34:00 UTC

[jira] [Commented] (LUCENE-9330) Make SortField responsible for index sorting

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

ASF subversion and git services commented on LUCENE-9330:
---------------------------------------------------------

Commit de2bad9039054af753bc2c847565f63f05f4fdd7 in lucene-solr's branch refs/heads/master from Alan Woodward
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=de2bad9 ]

LUCENE-9330: Make SortFields responsible for index sorting and serialization (#1440)

This commit adds a new class IndexSorter which handles how a sort should be applied
to documents in an index:

* how to serialize/deserialize sort info in the segment header
* how to sort documents within a segment
* how to sort documents from merging segments

SortField has a getIndexSorter() method, which will return null if the sort cannot be used
to sort an index (eg if it uses scores or other query-dependent values). This also requires a
new Codec as there is a change to the SegmentInfoFormat

> 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: 3h 20m
>  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-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org