public class MemoryIndexOffsetStrategy extends AnalysisOffsetStrategy
Analyzer on content to get offsets and then populates a MemoryIndex.analyzercomponents| 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, tokenStreamcreateOffsetsEnumFromReader, createOffsetsEnumsForAutomata, createOffsetsEnumsForTerms, createOffsetsEnumsWeightMatcher, getFieldpublic MemoryIndexOffsetStrategy(UHComponents components, Analyzer analyzer)
public OffsetsEnum getOffsetsEnum(LeafReader reader, int docId, String content) throws IOException
FieldOffsetStrategygetOffsetsEnum in class FieldOffsetStrategyIOExceptionCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.