public class PostingsOffsetStrategy extends FieldOffsetStrategy
IndexOptions.DOCS_AND_FREQS_AND_POSITIONS_AND_OFFSETS. This
does not support multi-term queries; the highlighter will fallback on analysis for that.components| Constructor and Description |
|---|
PostingsOffsetStrategy(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, getFieldpublic PostingsOffsetStrategy(UHComponents components)
public OffsetsEnum getOffsetsEnum(LeafReader reader, int docId, String content) throws IOException
FieldOffsetStrategygetOffsetsEnum in class FieldOffsetStrategyIOExceptionpublic UnifiedHighlighter.OffsetSource getOffsetSource()
getOffsetSource in class FieldOffsetStrategyCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.