[
https://issues.apache.org/jira/browse/LUCENE-2480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Shai Erera updated LUCENE-2480:
-------------------------------
Attachment: LUCENE-2480.patch
* Removed the byte written by SegmentInfo (hasSingleNormsFile - redundant).
* Added live migration code to SI.ctor to read that byte if pre-4.0 index
* Renamed FORMAT_FLEX_POSTING to FORMAT_4_0. I think we should do this going
forward in more places, so that it's clear to which version this format belongs
and will make the task of removing support for old indexes in the future
easier. The jdoc of the constant needs to describe what is covered by that
format.
Besides the Solr tests, everything passes.
BTW, I don't think we should stop writing that byte in 3.1 - not sure if
hasSingleNormsFile is always true, and even if so, 3.0 indexes still need to be
supported and they write the byte. And it does not add much of complexity.
> Remove support for pre-3.0 indexes
> ----------------------------------
>
> Key: LUCENE-2480
> URL: https://issues.apache.org/jira/browse/LUCENE-2480
> Project: Lucene - Java
> Issue Type: Improvement
> Components: Index
> Reporter: Shai Erera
> Priority: Minor
> Fix For: 4.0
>
> Attachments: LUCENE-2480.patch, LUCENE-2480.patch, LUCENE-2480.patch,
> LUCENE-2480.patch
>
>
> We should remove support for 2.x (and 1.9) indexes in 4.0. It seems that
> nothing can be done in 3x because there is no special code which handles 1.9,
> so we'll leave it there. This issue should cover:
> # Remove the .zip indexes
> # Remove the unnecessary code from SegmentInfo and SegmentInfos. Mike
> suggests we compare the version headers at the top of SegmentInfos, in 2.9.x
> vs 3.0.x, to see which ones can go.
> # remove FORMAT_PRE from FieldInfos
> # Remove old format from TermVectorsReader
> If you know of other places where code can be removed, then please post a
> comment here.
> I don't know when I'll have time to handle it, definitely not in the next few
> days. So if someone wants to take a stab at it, be my guest.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]