Uses of Package
org.apache.lucene.search.uhighlight
Package
Description
The UnifiedHighlighter -- a flexible highlighter that can get offsets from postings, term
vectors, or analysis.
-
ClassDescriptionProvides a base class for analysis based offset strategies to extend from.Matches a character arrayInternal highlighter abstraction that operates on a per field basis.Ultimately returns an
OffsetsEnum
yielding potentially highlightable words in the text.Associates a label with a CharArrayMatcher to distinguish different sources for terms in highlightingWraps anotherBreakIterator
to skip past breaks that would result in passages that are too short.Never returns offsets.An enumeration/iterator of a term and its offsets for use byFieldHighlighter
.Represents a passage (typically a sentence of the document).Creates a formatted snippet from the top passages.Ranks passages found byUnifiedHighlighter
.Helps theFieldOffsetStrategy
with position sensitive queries (e.g.A parameter object to hold the components aFieldOffsetStrategy
needs.A Highlighter that can get offsets from either postings (IndexOptions.DOCS_AND_FREQS_AND_POSITIONS_AND_OFFSETS
), term vectors (FieldType.setStoreTermVectorOffsets(boolean)
), or via re-analyzing text.Builder for UnifiedHighlighter.Flags for controlling highlighting behavior.Fetches stored fields for highlighting.Source of term offsets; essential for highlighting.