public static enum Highlighter.Type extends java.lang.Enum<Highlighter.Type>
| Enum Constant and Description |
|---|
FVH
The
fvh highlighter uses the Lucene Fast Vector highlighter. |
PLAIN
The plain highlighter uses the standard Lucene highlighter.
|
UNIFIED
The unified highlighter uses the Lucene Unified Highlighter.
|
| Modifier and Type | Method and Description |
|---|---|
static Highlighter.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Highlighter.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Highlighter.Type UNIFIED
public static final Highlighter.Type PLAIN
public static final Highlighter.Type FVH
fvh highlighter uses the Lucene Fast Vector highlighter. This
highlighter can be used on fields with term_vector set to
with_positions_offsets in the mapping.public static Highlighter.Type[] values()
for (Highlighter.Type c : Highlighter.Type.values()) System.out.println(c);
public static Highlighter.Type 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 null