Uses of Interface
org.apache.lucene.search.matchhighlight.MatchHighlighter.FieldValueHighlighter
Package
Description
This package contains several components useful to build a highlighter on top of the
Matches
API.-
Uses of MatchHighlighter.FieldValueHighlighter in org.apache.lucene.search.matchhighlight
Modifier and TypeMethodDescriptionFieldValueHighlighters.highlighted
(int maxPassageWindow, int maxPassages, PassageFormatter passageFormatter, Predicate<String> matchFields) Highlights fields matching predicatematchFields
only if they contained query matches.FieldValueHighlighters.maxLeadingCharacters
(int maxLeadingCharacters, String ellipsis, Set<String> fields) Displays up tomaxLeadingCharacters
of the field's value, regardless of whether it contained highlights or not.MatchHighlighter.FieldValueHighlighter.or
(MatchHighlighter.FieldValueHighlighter other) Returns a new field value highlighter that is a combination of this one and another one.FieldValueHighlighters.skipRemaining()
Matches all fields and omits their value in the output (so that no highlight or value is emitted).FieldValueHighlighters.verbatimValue
(String field, String... moreFields) Always returns raw field values, no highlighting or value truncation is applied.Modifier and TypeMethodDescriptionMatchHighlighter.appendFieldHighlighter
(MatchHighlighter.FieldValueHighlighter highlighter) Append a new highlighter to field highlighters chain.MatchHighlighter.FieldValueHighlighter.or
(MatchHighlighter.FieldValueHighlighter other) Returns a new field value highlighter that is a combination of this one and another one.