Apache Lucene.Net 2.4.0 Class Library API

IndexWriter Constructor (String, Analyzer)

NOTE: This constructor is now obsolete.

This constructor will be removed in the 3.0 release. Use IndexWriter(string, Analyzer, MaxFieldLength) instead, and call Commit() when needed


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

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(
   string path,
   Analyzer a
);

Parameters

path
the path to the index directory
a
the analyzer to use

See Also

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