Apache Lucene.Net 2.4.0 Class Library API

IndexWriter Constructor (FileInfo, Analyzer, MaxFieldLength)

Constructs an IndexWriter for the index in
path
. Text will be analyzed with
a
.

NOTE: autoCommit (see above) is set to false with this constructor.

Throws CorruptIndexException if the index is corrupt

Throws LockObtainFailedException if another writer has this index open (

write.lock
could not be obtained)

Throws System.IO.IOException if the directory cannot be read/written to or if there is any other low-level IO error

public IndexWriter(
   FileInfo path,
   Analyzer a,
   MaxFieldLength mfl
);

Parameters

path
the path to the index directory
a
the analyzer to use
mfl
Maximum field Length: LIMITED, UNLIMITED, or user-specified

See Also

IndexWriter Class | Lucene.Net.Index Namespace | IndexWriter Constructor Overload List