Constructs an IndexWriter for the index in
CopyC#
path
. Text will be analyzed with
CopyC#
a
. If
CopyC#
create
is true, then a new, empty index will be created in
CopyC#
path
, replacing the index already there, if any.
has this index open (
CopyC#
write.lock
could not be obtained)
if it does not exist and
CopyC#
create
is
CopyC#
false
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("This constructor will be removed in the 3.0 release. Use IndexWriter(Directory,Analyzer,bool,MaxFieldLength) instead, and call Commit() when needed.")]
public IndexWriter(
	FileInfo path,
	Analyzer a,
	bool create
)
Visual Basic
<ObsoleteAttribute("This constructor will be removed in the 3.0 release. Use IndexWriter(Directory,Analyzer,bool,MaxFieldLength) instead, and call Commit() when needed.")> _
Public Sub New ( _
	path As FileInfo, _
	a As Analyzer, _
	create As Boolean _
)
Visual C++
[ObsoleteAttribute(L"This constructor will be removed in the 3.0 release. Use IndexWriter(Directory,Analyzer,bool,MaxFieldLength) instead, and call Commit() when needed.")]
public:
IndexWriter(
	FileInfo^ path, 
	Analyzer^ a, 
	bool create
)

Parameters

path
Type: System.IO..::..FileInfo
the path to the index directory
a
Type: Lucene.Net.Analysis..::..Analyzer
the analyzer to use
create
Type: System..::..Boolean
CopyC#
true
to create the index or overwrite the existing one;
CopyC#
false
to append to the existing index

See Also