@Tag(name="searchResultSnippet",
bodyContent=EMPTY)
public class SearchResultSnippetTag
extends javax.servlet.jsp.tagext.TagSupport
Constructor and Description |
---|
SearchResultSnippetTag() |
Modifier and Type | Method and Description |
---|---|
int |
doStartTag() |
Collection |
getSnippets()
Extract a collection of snippets from any paragraph in the given page.
|
void |
release() |
void |
setChars(int chars)
Number of characters to include in search snippets.
|
void |
setMaxSnippets(int maxSnippets)
Maximum number of snippets to print out.
|
void |
setPage(javax.jcr.Node page)
A Content node of type mgnl:content (a magnolia page), typically returned by the simpleSearch tag.
|
void |
setQuery(String query)
Search query.
|
protected String |
stripHtmlTags(String input) |
public void setQuery(String query)
public void setChars(int chars)
public void setMaxSnippets(int maxSnippets)
public void setPage(javax.jcr.Node page)
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
TagSupport.doStartTag()
public Collection getSnippets()
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class javax.servlet.jsp.tagext.TagSupport
TagSupport.release()
Copyright © 2003–2017 Magnolia International Ltd.. All rights reserved.