public class CustomPassageFormatter
extends org.apache.lucene.search.postingshighlight.PassageFormatter
Snippet)
2) use the Encoder implementations that are already used with the other highlighters| Constructor and Description |
|---|
CustomPassageFormatter(java.lang.String preTag,
java.lang.String postTag,
org.apache.lucene.search.highlight.Encoder encoder) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
append(java.lang.StringBuilder dest,
java.lang.String content,
int start,
int end) |
Snippet[] |
format(org.apache.lucene.search.postingshighlight.Passage[] passages,
java.lang.String content) |
public CustomPassageFormatter(java.lang.String preTag,
java.lang.String postTag,
org.apache.lucene.search.highlight.Encoder encoder)
public Snippet[] format(org.apache.lucene.search.postingshighlight.Passage[] passages, java.lang.String content)
format in class org.apache.lucene.search.postingshighlight.PassageFormatterprotected void append(java.lang.StringBuilder dest,
java.lang.String content,
int start,
int end)