public class MemoryIndexOffsetStrategy extends AnalysisOffsetStrategy
Analyzer
on content to get offsets and then populates a MemoryIndex
.analyzer
components
Constructor and Description |
---|
MemoryIndexOffsetStrategy(UHComponents components,
Analyzer analyzer) |
Modifier and Type | Method and Description |
---|---|
OffsetsEnum |
getOffsetsEnum(LeafReader reader,
int docId,
String content)
The primary method -- return offsets for highlightable words in the specified document.
|
getOffsetSource, tokenStream
createOffsetsEnumFromReader, createOffsetsEnumsForAutomata, createOffsetsEnumsForTerms, createOffsetsEnumsWeightMatcher, getField
public MemoryIndexOffsetStrategy(UHComponents components, Analyzer analyzer)
public OffsetsEnum getOffsetsEnum(LeafReader reader, int docId, String content) throws IOException
FieldOffsetStrategy
getOffsetsEnum
in class FieldOffsetStrategy
IOException
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.