public class NoOpOffsetStrategy extends FieldOffsetStrategy
Modifier and Type | Field and Description |
---|---|
static NoOpOffsetStrategy |
INSTANCE |
automata, field, phraseHelper, terms
Modifier | Constructor and Description |
---|---|
private |
NoOpOffsetStrategy() |
Modifier and Type | Method and Description |
---|---|
java.util.List<OffsetsEnum> |
getOffsetsEnums(IndexReader reader,
int docId,
java.lang.String content)
The primary method -- return offsets for highlightable words in the specified document.
|
UnifiedHighlighter.OffsetSource |
getOffsetSource() |
createAutomataOffsetsFromTerms, createOffsetsEnumsFromReader, getField
public static final NoOpOffsetStrategy INSTANCE
public UnifiedHighlighter.OffsetSource getOffsetSource()
getOffsetSource
in class FieldOffsetStrategy
public java.util.List<OffsetsEnum> getOffsetsEnums(IndexReader reader, int docId, java.lang.String content) throws java.io.IOException
FieldOffsetStrategy
getOffsetsEnums
in class FieldOffsetStrategy
java.io.IOException