Class CmsSearchResultView
java.lang.Object
org.opencms.workplace.tools.searchindex.CmsSearchResultView
Displays the result of a 
CmsSearchRequires the following request parameters (see constructor):
- 
  index:
 the String identifying the required search index.
- 
  query:
 the search query to run.
- Since:
- 6.0.0
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected org.opencms.file.CmsProjectThe project that forces evaluation of all dynamic content.protected org.opencms.file.CmsProjectThe project that allows static export.
- 
Constructor SummaryConstructorsConstructorDescriptionCmsSearchResultView(javax.servlet.jsp.PageContext pageContext, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Constructor with arguments for construction of aCmsJspActionElementCmsSearchResultView(org.opencms.jsp.CmsJspActionElement action) Constructor with the action element to use.
- 
Method SummaryModifier and TypeMethodDescriptiondisplaySearchResult(org.opencms.search.CmsSearch search) Returns the formatted search results.booleanReturns true if the links to search results shall point to exported content, false else.voidsetExportLinks(boolean exportLinks) Set wether the links to search results point to exported content or not.voidSet a proprietary resource uri for the search page.
- 
Field Details- 
m_offlineProjectThe project that forces evaluation of all dynamic content.
- 
m_onlineProjectThe project that allows static export.
 
- 
- 
Constructor Details- 
CmsSearchResultViewConstructor with the action element to use.- Parameters:
- action- the action element to use
 
- 
CmsSearchResultViewpublic CmsSearchResultView(javax.servlet.jsp.PageContext pageContext, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Constructor with arguments for construction of aCmsJspActionElement- Parameters:
- pageContext- the page context to use
- request- the current request
- response- the current response
 
 
- 
- 
Method Details- 
displaySearchResultReturns the formatted search results.- Parameters:
- search- the pre-configured search bean
- Returns:
- the formatted search results
 
- 
isExportLinksReturns true if the links to search results shall point to exported content, false else.- Returns:
- true if the links to search results shall point to exported content, false else
 
- 
setExportLinksSet wether the links to search results point to exported content or not.- Parameters:
- exportLinks- The value that decides Set wether the links to search results point to exported content or not.
 
- 
setSearchRessourceUrlSet a proprietary resource uri for the search page.This is optional but allows to override the standard search result links (for next or previous pages) that point to getJsp().getRequestContext().getUri()whenever the search uri is element of some template and should not be linked directly.- Parameters:
- uri- the proprietary resource uri for the search page
 
 
-