public static enum UnifiedHighlighter.HighlightFlag extends Enum<UnifiedHighlighter.HighlightFlag>
Enum Constant and Description |
---|
MULTI_TERM_QUERY |
PASSAGE_RELEVANCY_OVER_SPEED
Passage relevancy is more important than speed.
|
PHRASES |
WEIGHT_MATCHES
Internally use the
Weight.matches(LeafReaderContext, int) API for highlighting. |
Modifier and Type | Method and Description |
---|---|
static UnifiedHighlighter.HighlightFlag |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UnifiedHighlighter.HighlightFlag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UnifiedHighlighter.HighlightFlag PHRASES
public static final UnifiedHighlighter.HighlightFlag MULTI_TERM_QUERY
public static final UnifiedHighlighter.HighlightFlag PASSAGE_RELEVANCY_OVER_SPEED
public static final UnifiedHighlighter.HighlightFlag WEIGHT_MATCHES
Weight.matches(LeafReaderContext, int)
API for highlighting.
It's more accurate to the query, though might not calculate passage relevancy as well.
Use of this flag requires MULTI_TERM_QUERY
and PHRASES
.
PASSAGE_RELEVANCY_OVER_SPEED
will be ignored. False by default.public static UnifiedHighlighter.HighlightFlag[] values()
for (UnifiedHighlighter.HighlightFlag c : UnifiedHighlighter.HighlightFlag.values()) System.out.println(c);
public static UnifiedHighlighter.HighlightFlag 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-2019 Apache Software Foundation. All Rights Reserved.