Class SolrSearchApp
- java.lang.Object
-
- fr.paris.lutece.plugins.search.solr.web.SolrSearchApp
-
- All Implemented Interfaces:
fr.paris.lutece.portal.web.xpages.XPageApplication,java.io.Serializable
public class SolrSearchApp extends java.lang.Object implements fr.paris.lutece.portal.web.xpages.XPageApplicationThis page shows some features of Solr like Highlights or Facets.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPARAMETER_CONF
-
Constructor Summary
Constructors Constructor Description SolrSearchApp()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description fr.paris.lutece.portal.web.xpages.XPagegetPage(javax.servlet.http.HttpServletRequest request, int nMode, fr.paris.lutece.portal.service.plugin.Plugin plugin)Returns search resultsstatic java.util.Map<java.lang.String,java.lang.Object>getSearchResultModel(javax.servlet.http.HttpServletRequest request)Performs a search and fills the model (useful when a page needs to remind search parameters/results) with the default confstatic java.util.Map<java.lang.String,java.lang.Object>getSearchResultModel(javax.servlet.http.HttpServletRequest request, SolrSearchAppConf conf)Performs a search and fills the model (useful when a page needs to remind search parameters/results)
-
-
-
Field Detail
-
PARAMETER_CONF
public static final java.lang.String PARAMETER_CONF
- See Also:
- Constant Field Values
-
-
Method Detail
-
getPage
public fr.paris.lutece.portal.web.xpages.XPage getPage(javax.servlet.http.HttpServletRequest request, int nMode, fr.paris.lutece.portal.service.plugin.Plugin plugin) throws fr.paris.lutece.portal.service.message.SiteMessageExceptionReturns search results- Specified by:
getPagein interfacefr.paris.lutece.portal.web.xpages.XPageApplication- Parameters:
request- The HTTP request.nMode- The current mode.plugin- The plugin- Returns:
- The HTML code of the page.
- Throws:
fr.paris.lutece.portal.service.message.SiteMessageException- exception
-
getSearchResultModel
public static java.util.Map<java.lang.String,java.lang.Object> getSearchResultModel(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.message.SiteMessageExceptionPerforms a search and fills the model (useful when a page needs to remind search parameters/results) with the default conf- Parameters:
request- the request- Returns:
- the model
- Throws:
fr.paris.lutece.portal.service.message.SiteMessageException- if an error occurs
-
getSearchResultModel
public static java.util.Map<java.lang.String,java.lang.Object> getSearchResultModel(javax.servlet.http.HttpServletRequest request, SolrSearchAppConf conf) throws fr.paris.lutece.portal.service.message.SiteMessageExceptionPerforms a search and fills the model (useful when a page needs to remind search parameters/results)- Parameters:
request- the requestconf- the configuration- Returns:
- the model
- Throws:
fr.paris.lutece.portal.service.message.SiteMessageException- if an error occurs
-
-