public class SearchResultItem extends Object
DefaultContent
.getNodeDataCollection()
.getChildren()Modifier and Type | Field and Description |
---|---|
protected int |
chars
Number of chars to include in result.
|
protected int |
maxSnippets
Maximum number of snippets to include in result.
|
protected String |
query |
Constructor and Description |
---|
SearchResultItem(javax.jcr.Node node,
String query,
String title,
String author,
String category,
Calendar date,
String link) |
SearchResultItem(javax.jcr.Node node,
String query,
info.magnolia.templating.functions.TemplatingFunctions templatingFunctions)
FIXME usage of deprecated classes:
ContentUtil . |
Modifier and Type | Method and Description |
---|---|
String |
getAuthor() |
String |
getCategory() |
Calendar |
getDate() |
String |
getFormattedText()
Deprecated.
since stk1.1
|
String |
getLink() |
int |
getMaxSnippets() |
javax.jcr.Node |
getNode() |
String |
getSnippets() |
String |
getText() |
String |
getTitle() |
protected void |
highlightSnippet(List<String> snippetList,
info.magnolia.cms.core.NodeData property) |
protected boolean |
processNodeDatas(int numberOfSnippets,
StringBuffer snippets,
info.magnolia.cms.core.Content paragraph)
FIXME usage of deprecated classes:
ContentUtil . |
void |
setMaxSnippets(int maxSnippets) |
protected boolean |
skipProperty(String name,
String resultString,
String searchTerm) |
protected String |
stripHtmlTags(String resultString) |
protected int chars
protected int maxSnippets
protected String query
public SearchResultItem(javax.jcr.Node node, String query, info.magnolia.templating.functions.TemplatingFunctions templatingFunctions)
ContentUtil
.
To remove when core has implemented I18nContentSupport for Nodepublic Calendar getDate()
public String getAuthor()
public String getCategory()
public String getTitle()
public String getText()
public String getFormattedText()
public String getLink()
public javax.jcr.Node getNode()
public String getSnippets()
public int getMaxSnippets()
public void setMaxSnippets(int maxSnippets)
protected boolean processNodeDatas(int numberOfSnippets, StringBuffer snippets, info.magnolia.cms.core.Content paragraph)
ContentUtil
.
To remove when core has implemented getNodeDataCollection() for Nodeprotected void highlightSnippet(List<String> snippetList, info.magnolia.cms.core.NodeData property)
Copyright © 2008–2015 Magnolia International Ltd.. All rights reserved.