public static enum Field.TermVector extends java.lang.Enum<Field.TermVector>
| Enum Constant and Description |
|---|
NO
No term vectors are stored.
|
WITH_OFFSETS
Terms and character offsets are stored.
|
WITH_POSITIONS
Terms and positions are stored.
|
WITH_POSITIONS_OFFSETS
Terms, positions, and character offsets are stored.
|
YES
Just the terms in the field are stored.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toString() |
static Field.TermVector |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Field.TermVector[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Field.TermVector NO
public static final Field.TermVector YES
public static final Field.TermVector WITH_POSITIONS
public static final Field.TermVector WITH_OFFSETS
public static final Field.TermVector WITH_POSITIONS_OFFSETS
with_positions_offsets
WARNING: Setting with_positions_offsets will double the size of a field’s
index.
public static Field.TermVector[] values()
for (Field.TermVector c : Field.TermVector.values()) System.out.println(c);
public static Field.TermVector 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.TermVector>