public class SearchResultItem extends Object
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) |
Modifier and Type | Method and Description |
---|---|
String |
getAuthor() |
String |
getCategory() |
Calendar |
getDate() |
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)
Deprecated.
since 2.9, use
highlightSnippet(List, Property) instead. |
protected void |
highlightSnippet(List<String> snippetList,
javax.jcr.Property property) |
protected boolean |
processNodeDatas(int numberOfSnippets,
StringBuffer snippets,
info.magnolia.cms.core.Content paragraph)
Deprecated.
since 2.9, use
processProperties(int, StringBuffer, Node) instead. |
protected boolean |
processProperties(int numberOfSnippets,
StringBuffer snippets,
javax.jcr.Node node) |
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)
public Calendar getDate()
public String getAuthor()
public String getCategory()
public String getTitle()
public String getText()
public String getLink()
public javax.jcr.Node getNode()
public String getSnippets()
public int getMaxSnippets()
public void setMaxSnippets(int maxSnippets)
protected boolean processProperties(int numberOfSnippets, StringBuffer snippets, javax.jcr.Node node) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
@Deprecated protected boolean processNodeDatas(int numberOfSnippets, StringBuffer snippets, info.magnolia.cms.core.Content paragraph) throws javax.jcr.RepositoryException
processProperties(int, StringBuffer, Node)
instead.javax.jcr.RepositoryException
@Deprecated protected void highlightSnippet(List<String> snippetList, info.magnolia.cms.core.NodeData property) throws javax.jcr.RepositoryException
highlightSnippet(List, Property)
instead.javax.jcr.RepositoryException
protected void highlightSnippet(List<String> snippetList, javax.jcr.Property property) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
Copyright © 2008–2017 Magnolia International Ltd.. All rights reserved.