## Uses of Class
org.apache.lucene.search.uhighlight.FieldOffsetStrategy

- Packages that use FieldOffsetStrategy
  Package | Description
  --- | ---
  org.apache.lucene.search.uhighlight | 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.uhighlight
    Modifier and Type | Class and Description
    --- | ---
    `class` | `AnalysisOffsetStrategy` Provides a base class for analysis based offset strategies to extend from.
    `class` | `MemoryIndexOffsetStrategy` Uses an `Analyzer` on content to get offsets and then populates a `MemoryIndex`.
    `class` | `NoOpOffsetStrategy` Never returns offsets.
    `class` | `PostingsOffsetStrategy` Uses offsets in postings -- `IndexOptions.DOCS_AND_FREQS_AND_POSITIONS_AND_OFFSETS`.
    `class` | `PostingsWithTermVectorsOffsetStrategy` Like `PostingsOffsetStrategy` but also uses term vectors (only terms needed) for multi-term queries.
    `class` | `TermVectorOffsetStrategy` Uses term vectors that contain offsets.
    `class` | `TokenStreamOffsetStrategy` Analyzes the text, producing a single `OffsetsEnum` wrapping the `TokenStream` filtered to terms in the query, including wildcards.

    Fields in org.apache.lucene.search.uhighlight declared as FieldOffsetStrategy
    Modifier and Type | Field and Description
    --- | ---
    `protected FieldOffsetStrategy` | FieldHighlighter.`fieldOffsetStrategy`

    Methods in org.apache.lucene.search.uhighlight that return FieldOffsetStrategy
    Modifier and Type | Method and Description
    --- | ---
    `protected FieldOffsetStrategy` | UnifiedHighlighter.`getOffsetStrategy(UnifiedHighlighter.OffsetSource offsetSource, UHComponents components)`

    Constructors in org.apache.lucene.search.uhighlight with parameters of type FieldOffsetStrategy
    Constructor and Description
    `FieldHighlighter(String field, FieldOffsetStrategy fieldOffsetStrategy, BreakIterator breakIterator, PassageScorer passageScorer, int maxPassages, int maxNoHighlightPassages, PassageFormatter passageFormatter)`

Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.