Apache Lucene.Net 2.1 Class Library API

IndexWriter.AddDocument Method (Document, Analyzer)

Adds a document to this index, using the provided analyzer instead of the value of {@link #GetAnalyzer()}. If the document contains more than {@link #SetMaxFieldLength(int)} terms for a given field, the remainder are discarded.

See {@link #AddDocument(Document)} for details on index and IndexWriter state after an Exception, and flushing/merging temporary free space requirements.

public virtual void AddDocument(
   Document doc,
   Analyzer analyzer
);

See Also

IndexWriter Class | Lucene.Net.Index Namespace | IndexWriter.AddDocument Overload List