Apache Lucene.Net 2.4.0 Class Library API

IndexWriter Constructor

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

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 it does not exist and

create
is
false
or if there is any other low-level IO error

Overload List

Obsolete. 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(Directory,Analyzer);

 

public IndexWriter(Directory,Analyzer,IndexDeletionPolicy,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(Directory,Analyzer,MaxFieldLength);

Obsolete. Constructs an IndexWriter for the index in

path
. 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. 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 it does not exist and
create
is
false
or if there is any other low-level IO error

public IndexWriter(Directory,Analyzer,bool);

 

public IndexWriter(Directory,Analyzer,bool,IndexDeletionPolicy,MaxFieldLength);

Constructs an IndexWriter for the index in

path
. 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. 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 it does not exist and
create
is
false
or if there is any other low-level IO error

public IndexWriter(Directory,Analyzer,bool,MaxFieldLength);

Obsolete. 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(Directory,bool,Analyzer);

Obsolete.  

public IndexWriter(Directory,bool,Analyzer,IndexDeletionPolicy);

Obsolete. Constructs an IndexWriter for the index in

path
. 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. 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 it does not exist and
create
is
false
or if there is any other low-level IO error

public IndexWriter(Directory,bool,Analyzer,bool);

Obsolete.  

public IndexWriter(Directory,bool,Analyzer,bool,IndexDeletionPolicy);

Obsolete. 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(FileInfo,Analyzer);

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,Analyzer,MaxFieldLength);

Obsolete. Constructs an IndexWriter for the index in

path
. Text will be analyzed with
a
. If
create
is true, then a new, empty index will be created in
path
, replacing the index already there, if any. 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 it does not exist and
create
is
false
or if there is any other low-level IO error

public IndexWriter(FileInfo,Analyzer,bool);

Constructs an IndexWriter for the index in

path
. Text will be analyzed with
a
. If
create
is true, then a new, empty index will be created in
path
, replacing the index already there, if any. 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 it does not exist and
create
is
false
or if there is any other low-level IO error

public IndexWriter(FileInfo,Analyzer,bool,MaxFieldLength);

Obsolete. 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,Analyzer);

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

Obsolete. Constructs an IndexWriter for the index in

path
. Text will be analyzed with
a
. If
create
is true, then a new, empty index will be created in
path
, replacing the index already there, if any. 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 it does not exist and
create
is
false
or if there is any other low-level IO error

public IndexWriter(string,Analyzer,bool);

Constructs an IndexWriter for the index in

path
. Text will be analyzed with
a
. If
create
is true, then a new, empty index will be created in
path
, replacing the index already there, if any. 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 it does not exist and
create
is
false
or if there is any other low-level IO error

public IndexWriter(string,Analyzer,bool,MaxFieldLength);

See Also

IndexWriter Class | Lucene.Net.Index Namespace