|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SnippetOptionsIf
Used to configure snippets which are text fragments returned by the search engine surrounding the search text.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||