GetMaxFieldLength() private method

private GetMaxFieldLength ( ) : int
return int
Beispiel #1
0
 /// <throws>  IOException </throws>
 /// <seealso cref="IndexModifier#SetMaxFieldLength(int)">
 /// </seealso>
 public virtual int GetMaxFieldLength()
 {
     lock (directory)
     {
         AssureOpen();
         CreateIndexWriter();
         return(indexWriter.GetMaxFieldLength());
     }
 }
Beispiel #2
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();
		}
Beispiel #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();
 }