Open an index with write access.
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 IndexModifier(
	string dirName,
	Analyzer analyzer,
	bool create
)
Visual Basic
Public Sub New ( _
	dirName As String, _
	analyzer As Analyzer, _
	create As Boolean _
)
Visual C++
public:
IndexModifier(
	String^ dirName, 
	Analyzer^ analyzer, 
	bool create
)

Parameters

dirName
Type: System..::..String
the index directory
analyzer
Type: Lucene.Net.Analysis..::..Analyzer
the analyzer to use for adding new documents
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