Uses of Class
org.apache.lucene.search.uhighlight.FieldOffsetStrategy
Package
Description
The UnifiedHighlighter -- a flexible highlighter that can get offsets from postings, term
vectors, or analysis.
-
Uses of FieldOffsetStrategy in org.apache.lucene.search.uhighlight
Modifier and TypeClassDescriptionclass
Provides a base class for analysis based offset strategies to extend from.class
Uses anAnalyzer
on content to get offsets and then populates aMemoryIndex
.class
Never returns offsets.class
Uses offsets in postings --IndexOptions.DOCS_AND_FREQS_AND_POSITIONS_AND_OFFSETS
.class
LikePostingsOffsetStrategy
but also uses term vectors (only terms needed) for multi-term queries.class
Uses term vectors that contain offsets.class
Analyzes the text, producing a singleOffsetsEnum
wrapping theTokenStream
filtered to terms in the query, including wildcards.Modifier and TypeFieldDescriptionprotected final FieldOffsetStrategy
FieldHighlighter.fieldOffsetStrategy
Modifier and TypeMethodDescriptionprotected FieldOffsetStrategy
UnifiedHighlighter.getOffsetStrategy
(UnifiedHighlighter.OffsetSource offsetSource, UHComponents components) ModifierConstructorDescriptionFieldHighlighter
(String field, FieldOffsetStrategy fieldOffsetStrategy, BreakIterator breakIterator, PassageScorer passageScorer, int maxPassages, int maxNoHighlightPassages, PassageFormatter passageFormatter)