Re: Utility program to extract a segment

2010-04-14 Thread Michael McCandless
I don't think there's an existing tool, but it shouldn't be too hard to create. Create a new SegmentInfos(), then call its .read(oldDir) to read all segments. Look up the SegmentInfo(s) you want to copy and call their .files() methods to see which files to copy. Copy them. Remove all other segm

Utility program to extract a segment

2010-04-14 Thread Lance Norskog
Is there a program available that makes a new index with one or more segments from an existing index? (The immediate use case for this is doing forensics on corrupted indexes.) The user interface would be: extract -segments _ab,_g9 oldindex newindex This would copy the files for segments _ab and