Adds a document to this index, using the provided analyzer instead of the one specific in the constructor. If the document contains more than {@link #SetMaxFieldLength(int)} terms for a given field, the remainder are discarded.
has this index open (
CopyC#
write.lock
could not be obtained)

Namespace: Lucene.Net.Index
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public virtual void AddDocument(
	Document doc,
	Analyzer docAnalyzer
)
Visual Basic
Public Overridable Sub AddDocument ( _
	doc As Document, _
	docAnalyzer As Analyzer _
)
Visual C++
public:
virtual void AddDocument(
	Document^ doc, 
	Analyzer^ docAnalyzer
)

Parameters

doc
Type: Lucene.Net.Documents..::..Document

[Missing <param name="doc"/> documentation for "M:Lucene.Net.Index.IndexModifier.AddDocument(Lucene.Net.Documents.Document,Lucene.Net.Analysis.Analyzer)"]

docAnalyzer
Type: Lucene.Net.Analysis..::..Analyzer

[Missing <param name="docAnalyzer"/> documentation for "M:Lucene.Net.Index.IndexModifier.AddDocument(Lucene.Net.Documents.Document,Lucene.Net.Analysis.Analyzer)"]

See Also