GetMaxFieldLength() private method

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