Lucene.Net 1.4.3 Class Library

IndexWriter Constructor (Directory, Analyzer, Boolean)

Constructs an IndexWriter for the index in

d
. Text will be analyzed with
a
. If
create
is true, then a new, empty index will be created in
d
, replacing the index already there, if any.

public IndexWriter(
   Directory d,
   Analyzer a,
   bool create
);

Parameters

d
the index directory
a
the analyzer to use
create
true
to create the index or overwrite the existing one;
false
to append to the existing index

See Also

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