public class CustomPassageFormatter
extends org.apache.lucene.search.uhighlight.PassageFormatter
Snippet
)
2) use the Encoder
implementations that are already used with the other highlightersConstructor and Description |
---|
CustomPassageFormatter(java.lang.String preTag,
java.lang.String postTag,
org.apache.lucene.search.highlight.Encoder encoder) |
Modifier and Type | Method and Description |
---|---|
Snippet[] |
format(org.apache.lucene.search.uhighlight.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.uhighlight.Passage[] passages, java.lang.String content)
format
in class org.apache.lucene.search.uhighlight.PassageFormatter