public class TermVectorOffsetStrategy extends FieldOffsetStrategy
components
Constructor and Description |
---|
TermVectorOffsetStrategy(UHComponents components) |
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.
|
UnifiedHighlighter.OffsetSource |
getOffsetSource() |
createOffsetsEnumFromReader, createOffsetsEnumsForAutomata, createOffsetsEnumsForTerms, createOffsetsEnumsWeightMatcher, getField
public TermVectorOffsetStrategy(UHComponents components)
public UnifiedHighlighter.OffsetSource getOffsetSource()
getOffsetSource
in class FieldOffsetStrategy
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.