Uses of Class
org.apache.lucene.search.uhighlight.FieldOffsetStrategy
Packages that use 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
Subclasses of FieldOffsetStrategy in org.apache.lucene.search.uhighlightModifier and TypeClassDescriptionclassProvides a base class for analysis based offset strategies to extend from.classUses anAnalyzeron content to get offsets and then populates aMemoryIndex.classFieldOffsetStrategy that combines offsets from multiple fields.classNever returns offsets.classUses offsets in postings --IndexOptions.DOCS_AND_FREQS_AND_POSITIONS_AND_OFFSETS.classLikePostingsOffsetStrategybut also uses term vectors (only terms needed) for multi-term queries.classUses term vectors that contain offsets.classAnalyzes the text, producing a singleOffsetsEnumwrapping theTokenStreamfiltered to terms in the query, including wildcards.Fields in org.apache.lucene.search.uhighlight declared as FieldOffsetStrategyModifier and TypeFieldDescriptionprotected final FieldOffsetStrategyFieldHighlighter.fieldOffsetStrategyMethods in org.apache.lucene.search.uhighlight that return FieldOffsetStrategyModifier and TypeMethodDescriptionprotected FieldOffsetStrategyUnifiedHighlighter.getOffsetStrategy(UnifiedHighlighter.OffsetSource offsetSource, UHComponents components) Methods in org.apache.lucene.search.uhighlight with parameters of type FieldOffsetStrategyModifier and TypeMethodDescriptionprotected FieldHighlighterUnifiedHighlighter.newFieldHighlighter(String field, FieldOffsetStrategy fieldOffsetStrategy, BreakIterator breakIterator, PassageScorer passageScorer, int maxPassages, int maxNoHighlightPassages, PassageFormatter passageFormatter, Comparator<Passage> passageSortComparator) Constructors in org.apache.lucene.search.uhighlight with parameters of type FieldOffsetStrategyModifierConstructorDescriptionFieldHighlighter(String field, FieldOffsetStrategy fieldOffsetStrategy, BreakIterator breakIterator, PassageScorer passageScorer, int maxPassages, int maxNoHighlightPassages, PassageFormatter passageFormatter, Comparator<Passage> passageSortComparator) Constructor parameters in org.apache.lucene.search.uhighlight with type arguments of type FieldOffsetStrategyModifierConstructorDescriptionMultiFieldsOffsetStrategy(List<FieldOffsetStrategy> fieldsOffsetStrategies)