You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Shai Erera (JIRA)" <ji...@apache.org> on 2014/01/22 17:07:25 UTC

[jira] [Commented] (LUCENE-5412) SI.files should strip segment names

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

Shai Erera commented on LUCENE-5412:
------------------------------------

Could we change SegmentInfo.setFiles() to strip the segment name maybe? Just thinking of fewer places in the code to touch.

> 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org