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 2021/07/29 12:29:00 UTC

[jira] [Commented] (LUCENE-8505) IndexWriter#addIndices should not sort indices if they are not already sorted

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

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

Commit ba417b593fdf40a9c700b9d12f2d4bf0dec0fe8e in lucene's branch refs/heads/main from Nhat Nguyen
[ https://gitbox.apache.org/repos/asf?p=lucene.git;h=ba417b5 ]

LUCENE-10032: Remove leafDocMaps from MergeState (#222)

These maps are no longer useful after LUCENE-8505.

> IndexWriter#addIndices should not sort indices if they are not already sorted
> -----------------------------------------------------------------------------
>
>                 Key: LUCENE-8505
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8505
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Jim Ferenczi
>            Priority: Minor
>             Fix For: 8.0
>
>         Attachments: LUCENE-8505.patch
>
>
> Today IndexWriter#addIndices silently re-sort non-sorted indices when they are added in a sorted index. This is not safe because the sort is done entirely in memory and cannot handle big segments efficiently. This leniency was added because prior to 6.5, segments produced by flushes were not sorted, they had to wait for a merge to apply the index sorting. Now that segments are always sorted (LUCENE-7579) we should remove this ability and throw an error if the sort of the current index does not match with the candidate.



--
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