public class PostingsWithTermVectorsOffsetStrategy extends FieldOffsetStrategy
PostingsOffsetStrategy but also uses term vectors (only terms needed) for multi-term queries.automata, field, phraseHelper, terms| Constructor and Description |
|---|
PostingsWithTermVectorsOffsetStrategy(String field,
BytesRef[] queryTerms,
PhraseHelper phraseHelper,
CharacterRunAutomaton[] automata) |
| Modifier and Type | Method and Description |
|---|---|
List<OffsetsEnum> |
getOffsetsEnums(IndexReader reader,
int docId,
String content)
The primary method -- return offsets for highlightable words in the specified document.
|
UnifiedHighlighter.OffsetSource |
getOffsetSource() |
createAutomataOffsetsFromTerms, createOffsetsEnumsFromReader, getFieldpublic PostingsWithTermVectorsOffsetStrategy(String field, BytesRef[] queryTerms, PhraseHelper phraseHelper, CharacterRunAutomaton[] automata)
public List<OffsetsEnum> getOffsetsEnums(IndexReader reader, int docId, String content) throws IOException
FieldOffsetStrategygetOffsetsEnums in class FieldOffsetStrategyIOExceptionpublic UnifiedHighlighter.OffsetSource getOffsetSource()
getOffsetSource in class FieldOffsetStrategyCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.