public class PostingsWithTermVectorsOffsetStrategy extends FieldOffsetStrategy
PostingsOffsetStrategy but also uses term vectors (only terms needed) for multi-term queries.components| Constructor and Description |
|---|
PostingsWithTermVectorsOffsetStrategy(UHComponents components) |
| Modifier and Type | Method and Description |
|---|---|
OffsetsEnum |
getOffsetsEnum(LeafReader leafReader,
int docId,
String content)
The primary method -- return offsets for highlightable words in the specified document.
|
UnifiedHighlighter.OffsetSource |
getOffsetSource() |
createOffsetsEnumFromReader, createOffsetsEnumsForAutomata, createOffsetsEnumsForTerms, createOffsetsEnumsWeightMatcher, getFieldpublic PostingsWithTermVectorsOffsetStrategy(UHComponents components)
public OffsetsEnum getOffsetsEnum(LeafReader leafReader, int docId, String content) throws IOException
FieldOffsetStrategygetOffsetsEnum in class FieldOffsetStrategyIOExceptionpublic UnifiedHighlighter.OffsetSource getOffsetSource()
getOffsetSource in class FieldOffsetStrategyCopyright © 2000-2024 Apache Software Foundation. All Rights Reserved.