Class AnalysisOffsetStrategy
java.lang.Object
org.apache.lucene.search.uhighlight.FieldOffsetStrategy
org.apache.lucene.search.uhighlight.AnalysisOffsetStrategy
- Direct Known Subclasses:
MemoryIndexOffsetStrategy
,TokenStreamOffsetStrategy
Provides a base class for analysis based offset strategies to extend from. Requires an Analyzer
and provides an override-able method for altering how the TokenStream is created.
- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-
Field Summary
Fields inherited from class org.apache.lucene.search.uhighlight.FieldOffsetStrategy
components
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.lucene.search.uhighlight.FieldOffsetStrategy
createOffsetsEnumFromReader, createOffsetsEnumsForAutomata, createOffsetsEnumsForTerms, createOffsetsEnumsWeightMatcher, getField, getOffsetsEnum
-
Field Details
-
analyzer
-
-
Constructor Details
-
AnalysisOffsetStrategy
-
-
Method Details
-
getOffsetSource
- Specified by:
getOffsetSource
in classFieldOffsetStrategy
-
tokenStream
- Throws:
IOException
-