Class PostingsWithTermVectorsOffsetStrategy
java.lang.Object
org.apache.lucene.search.uhighlight.FieldOffsetStrategy
org.apache.lucene.search.uhighlight.PostingsWithTermVectorsOffsetStrategy
Like
PostingsOffsetStrategy
but also uses term vectors (only terms needed) for multi-term
queries.- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-
Field Summary
Fields inherited from class org.apache.lucene.search.uhighlight.FieldOffsetStrategy
components
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetOffsetsEnum
(LeafReader leafReader, int docId, String content) The primary method -- return offsets for highlightable words in the specified document.Methods inherited from class org.apache.lucene.search.uhighlight.FieldOffsetStrategy
createOffsetsEnumFromReader, createOffsetsEnumsForAutomata, createOffsetsEnumsForTerms, createOffsetsEnumsWeightMatcher, getField
-
Constructor Details
-
PostingsWithTermVectorsOffsetStrategy
-
-
Method Details
-
getOffsetsEnum
public OffsetsEnum getOffsetsEnum(LeafReader leafReader, int docId, String content) throws IOException Description copied from class:FieldOffsetStrategy
The primary method -- return offsets for highlightable words in the specified document.Callers are expected to close the returned OffsetsEnum when it has been finished with
- Specified by:
getOffsetsEnum
in classFieldOffsetStrategy
- Throws:
IOException
-
getOffsetSource
- Specified by:
getOffsetSource
in classFieldOffsetStrategy
-