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(
	FileInfo file,
	Analyzer analyzer,
	bool create
)
Visual Basic
Public Sub New ( _
	file As FileInfo, _
	analyzer As Analyzer, _
	create As Boolean _
)
Visual C++
public:
IndexModifier(
	FileInfo^ file, 
	Analyzer^ analyzer, 
	bool create
)

Parameters

file
Type: System.IO..::..FileInfo
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