Class FieldValueHighlighters.AbstractFieldValueHighlighter
java.lang.Object
org.apache.lucene.search.matchhighlight.FieldValueHighlighters.AbstractFieldValueHighlighter
- All Implemented Interfaces:
MatchHighlighter.FieldValueHighlighter
- Enclosing class:
FieldValueHighlighters
private abstract static class FieldValueHighlighters.AbstractFieldValueHighlighter
extends Object
implements MatchHighlighter.FieldValueHighlighter
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractFieldValueHighlighter(BiPredicate<String, Boolean> testPredicate) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanisApplicable(String field, boolean hasMatches) Check if this highlighter can be applied to a given field.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.lucene.search.matchhighlight.MatchHighlighter.FieldValueHighlighter
alwaysFetchedFields, format, or
-
Field Details
-
testPredicate
-
-
Constructor Details
-
AbstractFieldValueHighlighter
-
-
Method Details
-
isApplicable
Description copied from interface:MatchHighlighter.FieldValueHighlighterCheck if this highlighter can be applied to a given field.- Specified by:
isApplicablein interfaceMatchHighlighter.FieldValueHighlighter- Parameters:
field- Field namehasMatches-trueif the field has a non-empty set of match regions.
-