Esempio n. 1
0
        /// <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();
            }
        }
Esempio n. 2
0
        /// <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();
            }
        }