[
https://issues.apache.org/jira/browse/LUCENE-5954?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14571434#comment-14571434
]
Robert Muir commented on LUCENE-5954:
-------------------------------------
I don't want to do what the subject says :)
Or well, i want to creep the scope.
We need the minimum segment version to clean up the IndexFormatTooOldChecks.
The version of the commit itself is somewhat unrelated, but its sorta bogus its
not exposed to the user. I think currently our IndexUpgrader will fail to
properly upgrade an empty commit for example. There isn't even a simple way to
check :(
IMO any version(s) should be ordered before the segments, so we don't try to
e.g. load up old codecs that are too old/not there. This will clean up the
current logic of readCodec()
> Store lucene version in segment_N
> ---------------------------------
>
> Key: LUCENE-5954
> URL: https://issues.apache.org/jira/browse/LUCENE-5954
> Project: Lucene - Core
> Issue Type: Bug
> Reporter: Ryan Ernst
> Assignee: Michael McCandless
>
> It would be nice to have the version of lucene that wrote segments_N, so that
> we can use this to determine which major version an index was written with
> (for upgrading across major versions). I think this could be squeezed in
> just after the segments_N header.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]