Uses of Package
org.apache.lucene.search.matchhighlight
Package
Description
This package contains several components useful to build a highlighter on top of the
Matches
API.-
ClassDescriptionAn example highlighter that combines several lower-level highlighting utilities in this package into a fully featured, ready-to-use component.Single document's highlights.Actual per-field highlighter.An
OffsetRange
of a match, together with the source query that caused it.An abstraction that provides document values for a given field.A callback for accepting a single document (and its associated leaf reader, leaf document ID) and its match offset ranges, as indicated by theMatches
interface retrieved for the query.A non-empty range of offset positions.This strategy applies to fields with stored positions but no offsets.Determines how match offset regions are computed fromMatchesIterator
.A per-field supplier ofOffsetsRetrievalStrategy
.A passage is a fragment of source text, scored and possibly with a list of sub-offsets (markers) to be highlighted.Adjusts the range of one or more passages over a given value.Formats a collection of passages over a given string, cleaning up and resolving restrictions concerning overlaps, allowed sub-ranges over the input string and length restrictions.Selects fragments of text that score best for the given set of highlight markers.