Package | Description |
---|---|
org.apache.lucene.search.postingshighlight |
Highlighter implementation that uses offsets from postings lists.
|
Modifier and Type | Method and Description |
---|---|
protected Passage[] |
PostingsHighlighter.getEmptyHighlight(java.lang.String fieldName,
java.text.BreakIterator bi,
int maxPassages)
Called to summarize a document when no hits were
found.
|
private Passage[] |
PostingsHighlighter.highlightDoc(java.lang.String field,
BytesRef[] terms,
int contentLength,
java.text.BreakIterator bi,
int doc,
TermsEnum termsEnum,
PostingsEnum[] postings,
int n) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
DefaultPassageFormatter.format(Passage[] passages,
java.lang.String content) |
abstract java.lang.Object |
PassageFormatter.format(Passage[] passages,
java.lang.String content)
Formats the top
passages from content
into a human-readable text snippet. |