Constructs an IndexWriter for the index in
, first creating it if it does not
already exist. Text will be analyzed with
.
CopyC#
path
CopyC#
a
has this index open ( could not
be obtained)
CopyC#
write.lock
read/written to or if there is any other low-level
IO error
Namespace: Lucene.Net.IndexAssembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1
Syntax
C# |
---|
[ObsoleteAttribute("This constructor will be removed in the 3.0 release, and call Commit() when needed. Use IndexWriter(Directory,Analyzer,MaxFieldLength) instead.")] public IndexWriter( string path, Analyzer a ) |
Visual Basic |
---|
<ObsoleteAttribute("This constructor will be removed in the 3.0 release, and call Commit() when needed. Use IndexWriter(Directory,Analyzer,MaxFieldLength) instead.")> _ Public Sub New ( _ path As String, _ a As Analyzer _ ) |
Visual C++ |
---|
[ObsoleteAttribute(L"This constructor will be removed in the 3.0 release, and call Commit() when needed. Use IndexWriter(Directory,Analyzer,MaxFieldLength) instead.")] public: IndexWriter( String^ path, Analyzer^ a ) |
Parameters
- path
- Type: System..::..String
the path to the index directory
- a
- Type: Lucene.Net.Analysis..::..Analyzer
the analyzer to use