public class HighlightUtil
extends Object
Modifier and Type | Field and Description |
---|---|
static String |
HIGHLIGHT_TAG_CLOSE |
static String |
HIGHLIGHT_TAG_OPEN |
static String[] |
HIGHLIGHTS |
Constructor and Description |
---|
HighlightUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addSnippet(Document document,
Set<String> queryTerms,
String snippet,
String snippetFieldName) |
static String |
highlight(String s,
String[] queryTerms) |
static String |
highlight(String s,
String[] queryTerms,
String highlight1,
String highlight2) |
public static final String HIGHLIGHT_TAG_CLOSE
public static final String HIGHLIGHT_TAG_OPEN
public static final String[] HIGHLIGHTS
public static void addSnippet(Document document, Set<String> queryTerms, String snippet, String snippetFieldName)
public static String highlight(String s, String[] queryTerms)
public static String highlight(String s, String[] queryTerms, String highlight1, String highlight2)