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(String preTag,
String postTag,
org.apache.lucene.search.highlight.Encoder encoder) |
public Snippet[] format(org.apache.lucene.search.postingshighlight.Passage[] passages, String content)
format in class org.apache.lucene.search.postingshighlight.PassageFormatterprotected void append(StringBuilder dest, String content, int start, int end)
Copyright © 2009–2017. All rights reserved.