public class MemoryIndexOffsetStrategy extends AnalysisOffsetStrategy
Analyzer on content to get offsets and then populates a MemoryIndex.analyzerautomata, field, phraseHelper, terms| Constructor and Description |
|---|
MemoryIndexOffsetStrategy(String field,
Predicate<String> fieldMatcher,
BytesRef[] extractedTerms,
PhraseHelper phraseHelper,
CharacterRunAutomaton[] automata,
Analyzer analyzer,
Function<Query,Collection<Query>> multiTermQueryRewrite) |
| Modifier and Type | Method and Description |
|---|---|
OffsetsEnum |
getOffsetsEnum(IndexReader reader,
int docId,
String content)
The primary method -- return offsets for highlightable words in the specified document.
|
getOffsetSource, tokenStreamcreateOffsetsEnumFromReader, createOffsetsEnumsForAutomata, createOffsetsEnumsForTerms, getFieldpublic MemoryIndexOffsetStrategy(String field, Predicate<String> fieldMatcher, BytesRef[] extractedTerms, PhraseHelper phraseHelper, CharacterRunAutomaton[] automata, Analyzer analyzer, Function<Query,Collection<Query>> multiTermQueryRewrite)
public OffsetsEnum getOffsetsEnum(IndexReader reader, int docId, String content) throws IOException
FieldOffsetStrategygetOffsetsEnum in class FieldOffsetStrategyIOExceptionCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.