public interface SnippetOptionsIf
Modifier and Type | Method and Description |
---|---|
int |
getNumberOfSnippets()
Number of snippets returned.
|
java.lang.String |
getPostKeywordHighlight()
The text inserted after the keywords in order to highlight them.
|
java.lang.String |
getPreKeywordHighlight()
The text inserted before the keywords in order to highlight them.
|
int |
getSnippetSizeInChars()
The snippet length in characters.
|
boolean |
isEnableSnippets()
Snippets are enabled when set to true.
|
boolean |
isEscapeHTML()
Escape and HTML characters in the snippet.
|
void |
setEnableSnippets(boolean enableSnippets)
Snippets are enabled when set to true.
|
void |
setEscapeHTML(boolean escapeHTML)
Escape and HTML characters in the snippet.
|
void |
setNumberOfSnippets(int numberOfSnippets)
Number of snippets returned.
|
void |
setPostKeywordHighlight(java.lang.String postKeywordHighlight)
The text inserted after the keywords in order to highlight them.
|
void |
setPreKeywordHighlight(java.lang.String preKeywordHighlight)
The text inserted before the keywords in order to highlight them.
|
void |
setSnippetSizeInChars(int snippetSizeInChars)
The snippet length in characters.
|
boolean isEnableSnippets()
void setEnableSnippets(boolean enableSnippets)
enableSnippets
- the enableSnippets to setint getNumberOfSnippets()
void setNumberOfSnippets(int numberOfSnippets)
numberOfSnippets
- the numberOfSnippets to setint getSnippetSizeInChars()
void setSnippetSizeInChars(int snippetSizeInChars)
snippetSizeInChars
- the snippetSizeInChars to setjava.lang.String getPreKeywordHighlight()
void setPreKeywordHighlight(java.lang.String preKeywordHighlight)
preKeywordHighlight
- the preKeywordHighlight to setjava.lang.String getPostKeywordHighlight()
void setPostKeywordHighlight(java.lang.String postKeywordHighlight)
postKeywordHighlight
- the postKeywordHighlight to setvoid setEscapeHTML(boolean escapeHTML)
escapeHTML
- the escapeHTML to setboolean isEscapeHTML()
Copyright © 2018 DS Data Systems UK Ltd.