public static enum Field.IndexOptions extends java.lang.Enum<Field.IndexOptions>
| Enum Constant and Description |
|---|
DOCS
Only the doc number is indexed.
|
FREQS
Doc number and term frequencies are indexed.
|
OFFSETS
Doc number, term frequencies, positions, and start and end character offsets (which map
the term back to the original string) are indexed.
|
POSITIONS
Doc number, term frequencies, and term positions (or order) are indexed.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toString() |
static Field.IndexOptions |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Field.IndexOptions[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Field.IndexOptions DOCS
public static final Field.IndexOptions FREQS
public static final Field.IndexOptions POSITIONS
public static final Field.IndexOptions OFFSETS
Highlighter.Type.UNIFIED highlighter to speed
up highlighting.public static Field.IndexOptions[] values()
for (Field.IndexOptions c : Field.IndexOptions.values()) System.out.println(c);
public static Field.IndexOptions valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String toString()
toString in class java.lang.Enum<Field.IndexOptions>