public abstract class AnalysisOffsetStrategy extends FieldOffsetStrategy
Modifier and Type | Field and Description |
---|---|
protected Analyzer |
analyzer |
automata, field, phraseHelper, terms
Constructor and Description |
---|
AnalysisOffsetStrategy(String field,
BytesRef[] queryTerms,
PhraseHelper phraseHelper,
CharacterRunAutomaton[] automata,
Analyzer analyzer) |
Modifier and Type | Method and Description |
---|---|
UnifiedHighlighter.OffsetSource |
getOffsetSource() |
protected TokenStream |
tokenStream(String content) |
createAutomataOffsetsFromTerms, createOffsetsEnumsFromReader, getField, getOffsetsEnums
protected final Analyzer analyzer
public AnalysisOffsetStrategy(String field, BytesRef[] queryTerms, PhraseHelper phraseHelper, CharacterRunAutomaton[] automata, Analyzer analyzer)
public final UnifiedHighlighter.OffsetSource getOffsetSource()
getOffsetSource
in class FieldOffsetStrategy
protected TokenStream tokenStream(String content) throws IOException
IOException
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.