Exemple #1
0
 /// <summary>
 /// Builder method for <see cref="LiveIndexWriterConfig.ReaderTermsIndexDivisor"/>.
 /// </summary>
 /// <param name="config">this <see cref="LiveIndexWriterConfig"/> instance</param>
 /// <param name="divisor"></param>
 /// <returns>this <see cref="LiveIndexWriterConfig"/> instance</returns>
 public static LiveIndexWriterConfig SetReaderTermsIndexDivisor(this LiveIndexWriterConfig config, int divisor)
 {
     config.ReaderTermsIndexDivisor = divisor;
     return(config);
 }
Exemple #2
0
 /// <summary>
 /// Builder method for <see cref="LiveIndexWriterConfig.MaxBufferedDocs"/>.
 /// </summary>
 /// <param name="config">this <see cref="LiveIndexWriterConfig"/> instance</param>
 /// <param name="maxBufferedDocs"></param>
 /// <returns>this <see cref="LiveIndexWriterConfig"/> instance</returns>
 public static LiveIndexWriterConfig SetMaxBufferedDocs(this LiveIndexWriterConfig config, int maxBufferedDocs)
 {
     config.MaxBufferedDocs = maxBufferedDocs;
     return(config);
 }
Exemple #3
0
 /// <summary>
 /// Builder method for <see cref="LiveIndexWriterConfig.MergedSegmentWarmer"/>.
 /// </summary>
 /// <param name="config">this <see cref="LiveIndexWriterConfig"/> instance</param>
 /// <param name="mergeSegmentWarmer"></param>
 /// <returns>this <see cref="LiveIndexWriterConfig"/> instance</returns>
 public static LiveIndexWriterConfig SetMergedSegmentWarmer(this LiveIndexWriterConfig config, IndexWriter.IndexReaderWarmer mergeSegmentWarmer)
 {
     config.MergedSegmentWarmer = mergeSegmentWarmer;
     return(config);
 }
Exemple #4
0
 /// <summary>
 /// Builder method for <see cref="LiveIndexWriterConfig.RAMBufferSizeMB"/>.
 /// </summary>
 /// <param name="config">this <see cref="LiveIndexWriterConfig"/> instance</param>
 /// <param name="ramBufferSizeMB"></param>
 /// <returns>this <see cref="LiveIndexWriterConfig"/> instance</returns>
 public static LiveIndexWriterConfig SetRAMBufferSizeMB(this LiveIndexWriterConfig config, double ramBufferSizeMB)
 {
     config.RAMBufferSizeMB = ramBufferSizeMB;
     return(config);
 }
Exemple #5
0
 /// <summary>
 /// Builder method for <see cref="LiveIndexWriterConfig.MaxBufferedDeleteTerms"/>.
 /// </summary>
 /// <param name="config">this <see cref="LiveIndexWriterConfig"/> instance</param>
 /// <param name="maxBufferedDeleteTerms"></param>
 /// <returns>this <see cref="LiveIndexWriterConfig"/> instance</returns>
 public static LiveIndexWriterConfig SetMaxBufferedDeleteTerms(this LiveIndexWriterConfig config, int maxBufferedDeleteTerms)
 {
     config.MaxBufferedDeleteTerms = maxBufferedDeleteTerms;
     return(config);
 }
Exemple #6
0
        // -- LiveIndexWriterConfig.cs

        /// <summary>
        /// Builder method for <see cref="LiveIndexWriterConfig.TermIndexInterval"/>.
        /// </summary>
        /// <param name="config">this <see cref="LiveIndexWriterConfig"/> instance</param>
        /// <param name="interval"></param>
        /// <returns>this <see cref="LiveIndexWriterConfig"/> instance</returns>
        public static LiveIndexWriterConfig SetTermIndexInterval(this LiveIndexWriterConfig config, int interval)
        {
            config.TermIndexInterval = interval;
            return(config);
        }
Exemple #7
0
 /// <summary>
 /// Builder method for <see cref="LiveIndexWriterConfig.CheckIntegrityAtMerge"/>.
 /// </summary>
 /// <param name="config">this <see cref="LiveIndexWriterConfig"/> instance</param>
 /// <param name="checkIntegrityAtMerge"></param>
 /// <returns>this <see cref="LiveIndexWriterConfig"/> instance</returns>
 public static LiveIndexWriterConfig SetCheckIntegrityAtMerge(this LiveIndexWriterConfig config, bool checkIntegrityAtMerge)
 {
     config.CheckIntegrityAtMerge = checkIntegrityAtMerge;
     return(config);
 }
Exemple #8
0
 /// <summary>
 /// Builder method for <see cref="LiveIndexWriterConfig.UseCompoundFile"/>.
 /// </summary>
 /// <param name="config">this <see cref="LiveIndexWriterConfig"/> instance</param>
 /// <param name="useCompoundFile"></param>
 /// <returns>this <see cref="LiveIndexWriterConfig"/> instance</returns>
 public static LiveIndexWriterConfig SetUseCompoundFile(this LiveIndexWriterConfig config, bool useCompoundFile)
 {
     config.UseCompoundFile = useCompoundFile;
     return(config);
 }