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.NOTE: if this method hits an OutOfMemoryError
you should immediately close the writer. See above for details.
Namespace: Lucene.Net.IndexAssembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1
Syntax
C# |
---|
public virtual void AddDocument( Document doc, Analyzer analyzer ) |
Visual Basic |
---|
Public Overridable Sub AddDocument ( _ doc As Document, _ analyzer As Analyzer _ ) |
Visual C++ |
---|
public: virtual void AddDocument( Document^ doc, Analyzer^ analyzer ) |
Parameters
- doc
- Type: Lucene.Net.Documents..::..Document
[Missing <param name="doc"/> documentation for "M:Lucene.Net.Index.IndexWriter.AddDocument(Lucene.Net.Documents.Document,Lucene.Net.Analysis.Analyzer)"]
- analyzer
- Type: Lucene.Net.Analysis..::..Analyzer
[Missing <param name="analyzer"/> documentation for "M:Lucene.Net.Index.IndexWriter.AddDocument(Lucene.Net.Documents.Document,Lucene.Net.Analysis.Analyzer)"]