public static enum IndexWriterConfig.OpenMode extends Enum<IndexWriterConfig.OpenMode>
IndexWriter
.Enum Constant and Description |
---|
APPEND
Opens an existing index.
|
CREATE
Creates a new index or overwrites an existing one.
|
CREATE_OR_APPEND
Creates a new index if one does not exist,
otherwise it opens the index and documents will be appended.
|
Modifier and Type | Method and Description |
---|---|
static IndexWriterConfig.OpenMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IndexWriterConfig.OpenMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IndexWriterConfig.OpenMode CREATE
public static final IndexWriterConfig.OpenMode APPEND
public static final IndexWriterConfig.OpenMode CREATE_OR_APPEND
public static IndexWriterConfig.OpenMode[] values()
for (IndexWriterConfig.OpenMode c : IndexWriterConfig.OpenMode.values()) System.out.println(c);
public static IndexWriterConfig.OpenMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.