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 java.lang.Object implements MatchHighlighter.FieldValueHighlighter
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.function.BiPredicate<java.lang.String,java.lang.Boolean>testPredicate
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractFieldValueHighlighter(java.util.function.BiPredicate<java.lang.String,java.lang.Boolean> testPredicate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisApplicable(java.lang.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
-
-
-
-
Method Detail
-
isApplicable
public final boolean isApplicable(java.lang.String field, boolean hasMatches)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.
-
-