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
ConstructorsModifierConstructorDescriptionprotected
AbstractFieldValueHighlighter
(BiPredicate<String, Boolean> testPredicate) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
isApplicable
(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, wait
Methods 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.FieldValueHighlighter
Check if this highlighter can be applied to a given field.- Specified by:
isApplicable
in interfaceMatchHighlighter.FieldValueHighlighter
- Parameters:
field
- Field namehasMatches
-true
if the field has a non-empty set of match regions.
-