Class PassageFormatter

java.lang.Object
org.apache.lucene.search.matchhighlight.PassageFormatter

public class PassageFormatter extends Object
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.

Passages are demarcated with constructor-provided ellipsis and start/end marker sequences.