Constructs an IndexWriter for the index in
CopyC#
path
, first creating it if it does not already exist. Text will be analyzed with
CopyC#
a
.

NOTE: autoCommit (see above) is set to false with this constructor.

has this index open (
CopyC#
write.lock
could not be obtained)
read/written to or if there is any other low-level IO error

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

Syntax

C#
[ObsoleteAttribute("Use {@link #IndexWriter(Directory,Analyzer, MaxFieldLength)")]
public IndexWriter(
	FileInfo path,
	Analyzer a,
	IndexWriter..::..MaxFieldLength mfl
)
Visual Basic
<ObsoleteAttribute("Use {@link #IndexWriter(Directory,Analyzer, MaxFieldLength)")> _
Public Sub New ( _
	path As FileInfo, _
	a As Analyzer, _
	mfl As IndexWriter..::..MaxFieldLength _
)
Visual C++
[ObsoleteAttribute(L"Use {@link #IndexWriter(Directory,Analyzer, MaxFieldLength)")]
public:
IndexWriter(
	FileInfo^ path, 
	Analyzer^ a, 
	IndexWriter..::..MaxFieldLength^ mfl
)

Parameters

path
Type: System.IO..::..FileInfo
the path to the index directory
a
Type: Lucene.Net.Analysis..::..Analyzer
the analyzer to use
mfl
Type: Lucene.Net.Index..::..IndexWriter..::..MaxFieldLength
Maximum field length in number of terms/tokens: LIMITED, UNLIMITED, or user-specified via the MaxFieldLength constructor.

See Also