/// /// <returns> The number of documents in all of the readers </returns> /// <exception cref="CorruptIndexException"> if the index is corrupt </exception> /// <exception cref="IOException"> if there is a low-level IO error </exception> private int MergeFields() { StoredFieldsWriter fieldsWriter = codec.StoredFieldsFormat.FieldsWriter(directory, mergeState.SegmentInfo, context); try { return(fieldsWriter.Merge(mergeState)); } finally { fieldsWriter.Dispose(); } }
/// /// <returns> The number of documents in all of the readers </returns> /// <exception cref="CorruptIndexException"> if the index is corrupt </exception> /// <exception cref="IOException"> if there is a low-level IO error </exception> private int MergeFields() { StoredFieldsWriter fieldsWriter = Codec.StoredFieldsFormat().FieldsWriter(Directory, MergeState.SegmentInfo, Context); try { return(fieldsWriter.Merge(MergeState)); } finally { fieldsWriter.Dispose(); } }