public class CustomPassageFormatter
extends org.apache.lucene.search.postingshighlight.PassageFormatter
Snippet
)
2) use the Encoder
implementations that are already used with the other highlightersConstructor and Description |
---|
CustomPassageFormatter(String preTag,
String postTag,
org.apache.lucene.search.highlight.Encoder encoder) |
Modifier and Type | Method and Description |
---|---|
protected void |
append(StringBuilder dest,
String content,
int start,
int end) |
Snippet[] |
format(org.apache.lucene.search.postingshighlight.Passage[] passages,
String content) |
public Snippet[] format(org.apache.lucene.search.postingshighlight.Passage[] passages, String content)
format
in class org.apache.lucene.search.postingshighlight.PassageFormatter
protected void append(StringBuilder dest, String content, int start, int end)
Copyright © 2009–2016. All rights reserved.