public class NoOpOffsetStrategy extends FieldOffsetStrategy
| Modifier and Type | Field and Description |
|---|---|
static NoOpOffsetStrategy |
INSTANCE |
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 static final NoOpOffsetStrategy INSTANCE
public UnifiedHighlighter.OffsetSource getOffsetSource()
getOffsetSource in class FieldOffsetStrategypublic OffsetsEnum getOffsetsEnum(LeafReader reader, int docId, String content) throws IOException
FieldOffsetStrategygetOffsetsEnum in class FieldOffsetStrategyIOExceptionCopyright © 2000-2024 Apache Software Foundation. All Rights Reserved.