public abstract class AnalysisOffsetStrategy extends FieldOffsetStrategy
Modifier and Type | Class and Description |
---|---|
private static class |
AnalysisOffsetStrategy.MultiValueTokenStream
Wraps an
Analyzer and string text that represents multiple values delimited by a specified character. |
Modifier and Type | Field and Description |
---|---|
protected Analyzer |
analyzer |
components
Constructor and Description |
---|
AnalysisOffsetStrategy(UHComponents components,
Analyzer analyzer) |
Modifier and Type | Method and Description |
---|---|
UnifiedHighlighter.OffsetSource |
getOffsetSource() |
protected TokenStream |
tokenStream(java.lang.String content) |
createOffsetsEnumFromReader, createOffsetsEnumsForAutomata, createOffsetsEnumsForTerms, createOffsetsEnumsWeightMatcher, getField, getOffsetsEnum
protected final Analyzer analyzer
public AnalysisOffsetStrategy(UHComponents components, Analyzer analyzer)
public final UnifiedHighlighter.OffsetSource getOffsetSource()
getOffsetSource
in class FieldOffsetStrategy
protected TokenStream tokenStream(java.lang.String content) throws java.io.IOException
java.io.IOException