Class Passage
java.lang.Object
org.apache.lucene.search.matchhighlight.OffsetRange
org.apache.lucene.search.matchhighlight.Passage
- All Implemented Interfaces:
Cloneable
A passage is a fragment of source text, scored and possibly with a list of sub-offsets (markers)
to be highlighted. The markers can be overlapping or nested, but they're always contained within
the passage.
-
Field Summary
Fields inherited from class org.apache.lucene.search.matchhighlight.OffsetRange
from, to
-
Constructor Summary
-
Method Summary
-
Field Details
-
markers
-
-
Constructor Details
-
Passage
-
-
Method Details
-
slice
Passages can't be sliced as it could split previously determined highlight markers.- Overrides:
slice
in classOffsetRange
-
toString
- Overrides:
toString
in classOffsetRange
-