예제 #1
0
 internal SegmentMerger(IndexWriter writer, System.String name)
 {
     InitBlock();
     directory         = writer.GetDirectory();
     segment           = name;
     termIndexInterval = writer.GetTermIndexInterval();
 }
예제 #2
0
		internal SegmentMerger(IndexWriter writer, System.String name)
		{
			InitBlock();
			directory = writer.GetDirectory();
			segment = name;
			termIndexInterval = writer.GetTermIndexInterval();
		}
예제 #3
0
		public DocumentWriter(Directory directory, Analyzer analyzer, IndexWriter writer)
		{
			InitBlock();
			this.directory = directory;
			this.analyzer = analyzer;
			this.similarity = writer.GetSimilarity();
			this.maxFieldLength = writer.GetMaxFieldLength();
			this.termIndexInterval = writer.GetTermIndexInterval();
		}
예제 #4
0
 public DocumentWriter(Directory directory, Analyzer analyzer, IndexWriter writer)
 {
     InitBlock();
     this.directory         = directory;
     this.analyzer          = analyzer;
     this.similarity        = writer.GetSimilarity();
     this.maxFieldLength    = writer.GetMaxFieldLength();
     this.termIndexInterval = writer.GetTermIndexInterval();
 }
예제 #5
0
 internal SegmentMerger(IndexWriter writer, System.String name, MergePolicy.OneMerge merge)
 {
     InitBlock();
     directory = writer.GetDirectory();
     segment   = name;
     if (merge != null)
     {
         checkAbort = new CheckAbort(merge, directory);
     }
     termIndexInterval = writer.GetTermIndexInterval();
 }
예제 #6
0
		internal SegmentMerger(IndexWriter writer, System.String name, MergePolicy.OneMerge merge)
		{
			InitBlock();
			directory = writer.GetDirectory();
			segment = name;
			if (merge != null)
			{
				checkAbort = new CheckAbort(merge, directory);
			}
			else
			{
				checkAbort = new AnonymousClassCheckAbort1(this, null, null);
			}
			termIndexInterval = writer.GetTermIndexInterval();
		}
예제 #7
0
		internal SegmentMerger(IndexWriter writer, System.String name, MergePolicy.OneMerge merge)
		{
			InitBlock();
			directory = writer.GetDirectory();
			segment = name;
			if (merge != null)
			{
				checkAbort = new CheckAbort(merge, directory);
			}
			else
			{
                checkAbort = new CheckAbort(null, null, (d) => {/*Do nothing*/ });
			}
			termIndexInterval = writer.GetTermIndexInterval();
		}
예제 #8
0
 internal SegmentMerger(IndexWriter writer, System.String name, MergePolicy.OneMerge merge)
 {
     InitBlock();
     directory = writer.GetDirectory();
     segment = name;
     if (merge != null)
         checkAbort = new CheckAbort(merge, directory);
     termIndexInterval = writer.GetTermIndexInterval();
 }