Expert: constructs an IndexWriter with a custom {@link
IndexDeletionPolicy}, for the index in ,
first creating it if it does not already exist. Text
will be analyzed with .
NOTE: autoCommit (see above) is set to false with this
constructor.
CopyC#
d
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# |
---|
public IndexWriter( Directory d, Analyzer a, IndexDeletionPolicy deletionPolicy, IndexWriter..::..MaxFieldLength mfl ) |
Visual Basic |
---|
Public Sub New ( _ d As Directory, _ a As Analyzer, _ deletionPolicy As IndexDeletionPolicy, _ mfl As IndexWriter..::..MaxFieldLength _ ) |
Visual C++ |
---|
public: IndexWriter( Directory^ d, Analyzer^ a, IndexDeletionPolicy^ deletionPolicy, IndexWriter..::..MaxFieldLength^ mfl ) |
Parameters
- d
- Type: Lucene.Net.Store..::..Directory
the index directory
- a
- Type: Lucene.Net.Analysis..::..Analyzer
the analyzer to use
- deletionPolicy
- Type: Lucene.Net.Index..::..IndexDeletionPolicy
see above
- mfl
- Type: Lucene.Net.Index..::..IndexWriter..::..MaxFieldLength
whether or not to limit field lengths