Class MatchHighlighter.QueryOffsetRange
- java.lang.Object
-
- org.apache.lucene.search.matchhighlight.OffsetRange
-
- org.apache.lucene.search.matchhighlight.MatchHighlighter.QueryOffsetRange
-
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- MatchHighlighter
public static class MatchHighlighter.QueryOffsetRange extends OffsetRange
AnOffsetRangeof a match, together with the source query that caused it.
-
-
Field Summary
Fields Modifier and Type Field Description Queryquery-
Fields inherited from class org.apache.lucene.search.matchhighlight.OffsetRange
from, to
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MatchHighlighter.QueryOffsetRangeslice(int from, int to)Returns a sub-range of this range (a copy).
-
-
-
Field Detail
-
query
public final Query query
-
-
Method Detail
-
slice
public MatchHighlighter.QueryOffsetRange slice(int from, int to)
Description copied from class:OffsetRangeReturns a sub-range of this range (a copy). Subclasses should override and return an appropriate type covariant so that payloads are not lost.- Overrides:
slicein classOffsetRange
-
-