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,
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, tokenStream
createOffsetsEnumFromReader, createOffsetsEnumsForAutomata, createOffsetsEnumsForTerms, createOffsetsEnumsWeightMatcher, getField
public 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
FieldOffsetStrategy
getOffsetsEnum
in class FieldOffsetStrategy
java.io.IOException
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.