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,
java.util.function.Function<Query,java.util.Collection<Query>> multiTermQueryRewrite) |
| Modifier and Type | Method and Description |
|---|---|
OffsetsEnum |
getOffsetsEnum(LeafReader reader,
int docId,
java.lang.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, java.util.function.Function<Query,java.util.Collection<Query>> multiTermQueryRewrite)
public OffsetsEnum getOffsetsEnum(LeafReader reader, int docId, java.lang.String content) throws java.io.IOException
FieldOffsetStrategygetOffsetsEnum in class FieldOffsetStrategyjava.io.IOExceptionCopyright © 2000–2025 The Apache Software Foundation. All rights reserved.