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