/// <summary> /// Merge the TermVectors from each of the segments into the new one. </summary> /// <exception cref="IOException"> if there is a low-level IO error </exception> private int MergeVectors() { TermVectorsWriter termVectorsWriter = codec.TermVectorsFormat.VectorsWriter(directory, mergeState.SegmentInfo, context); try { return(termVectorsWriter.Merge(mergeState)); } finally { termVectorsWriter.Dispose(); } }
/// <summary> /// Merge the TermVectors from each of the segments into the new one. </summary> /// <exception cref="IOException"> if there is a low-level IO error </exception> private int MergeVectors() { TermVectorsWriter termVectorsWriter = Codec.TermVectorsFormat().VectorsWriter(Directory, MergeState.SegmentInfo, Context); try { return(termVectorsWriter.Merge(MergeState)); } finally { termVectorsWriter.Dispose(); } }