Class NoOpOffsetStrategy
java.lang.Object
org.apache.lucene.search.uhighlight.FieldOffsetStrategy
org.apache.lucene.search.uhighlight.NoOpOffsetStrategy
Never returns offsets. Used when the query would highlight nothing.
- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-
Field Summary
FieldsFields inherited from class org.apache.lucene.search.uhighlight.FieldOffsetStrategy
components -
Method Summary
Modifier and TypeMethodDescriptiongetOffsetsEnum(LeafReader reader, 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
-
Field Details
-
INSTANCE
-
-
Method Details
-
getOffsetSource
- Specified by:
getOffsetSourcein classFieldOffsetStrategy
-
getOffsetsEnum
Description copied from class:FieldOffsetStrategyThe 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:
getOffsetsEnumin classFieldOffsetStrategy- Throws:
IOException
-