[
https://issues.apache.org/jira/browse/LUCENE-5412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13878798#comment-13878798
]
Robert Muir commented on LUCENE-5412:
-------------------------------------
Exactly, something like that: I dont think we should change our high-level API?
SI.files should return the set of actual filenames as it does now.
This would just be a change to the codec API, to e.g. strip the stuff we pass
to the SI Writer or whatever.
And the old codecs would strip what they read (as they wrote the unnecessary
additional stuff).
And we remove the call to SIWriter in addIndexes :)
> SI.files should strip segment names
> -----------------------------------
>
> Key: LUCENE-5412
> URL: https://issues.apache.org/jira/browse/LUCENE-5412
> Project: Lucene - Core
> Issue Type: Bug
> Reporter: Robert Muir
>
> Followup from LUCENE-5377:
> the root cause of all the hair there is because SI.files (set of files used
> by the segment), must be rewritten in addIndexes because its invalidated by
> the change of segment name.
> alternatively we could just not store this stuff, and strip the segment
> names. This is how CFS deals with this issue already.
> I think we can do this in a backwards compatible way too: for old codecs, the
> readers could be changed to simply strip internally (e.g. ignore the "extra"
> information they wrote) ?
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]