[ https://issues.apache.org/jira/browse/LUCENE-1959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12763440#action_12763440 ]
Andrzej Bialecki commented on LUCENE-1959: ------------------------------------------- I'm of a split mind about this splitter ;) in the sense that I'm not sure how useful it is - if your input is an optimized index then it has just 1 segment, so this tool won't be able to split it, right? AFAIK a similar functionality can be implemented also using two other methods that would work on indexes with any number of segments: one method is trivial, based on a "delete/IndexWriter.addIndexes/undeletAll" loop that requires multiple passes over input data, the other would use the same method as SegmentMerger uses, i.e. working with FieldsWriter, FormatPostings*Consumer, TermVectorsWriter, etc. for a single-pass splitting. So I guess I'm -0 on this index splitting method, because I think we can do it better. > Index Splitter > -------------- > > Key: LUCENE-1959 > URL: https://issues.apache.org/jira/browse/LUCENE-1959 > Project: Lucene - Java > Issue Type: New Feature > Components: Index > Affects Versions: 2.9 > Reporter: Jason Rutherglen > Assignee: Michael McCandless > Priority: Trivial > Fix For: 3.1 > > Attachments: LUCENE-1959.patch > > > If an index has multiple segments, this tool allows splitting those segments > into separate directories. -- 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: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org