Class SolrSearchApp
java.lang.Object
fr.paris.lutece.plugins.search.solr.web.SolrSearchApp
- All Implemented Interfaces:
fr.paris.lutece.portal.web.xpages.XPageApplication,Serializable
@RequestScoped
@Named("solr.xpage.search-solr")
public class SolrSearchApp
extends Object
implements fr.paris.lutece.portal.web.xpages.XPageApplication
This page shows some features of Solr like Highlights or Facets.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfr.paris.lutece.portal.web.xpages.XPagegetPage(jakarta.servlet.http.HttpServletRequest request, int nMode, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns search resultsgetSearchResultModel(jakarta.servlet.http.HttpServletRequest request, SolrSearchAppConf conf, jakarta.enterprise.event.Event<fr.paris.lutece.portal.service.search.QueryEvent> queryEvent) Performs a search and fills the model (useful when a page needs to remind search parameters/results)getSearchResultModel(jakarta.servlet.http.HttpServletRequest request, jakarta.enterprise.event.Event<fr.paris.lutece.portal.service.search.QueryEvent> queryEvent) Performs a search and fills the model (useful when a page needs to remind search parameters/results) with the default conf
-
Field Details
-
PARAMETER_CONF
- See Also:
-
-
Constructor Details
-
SolrSearchApp
public SolrSearchApp()
-
-
Method Details
-
getPage
public fr.paris.lutece.portal.web.xpages.XPage getPage(jakarta.servlet.http.HttpServletRequest request, int nMode, fr.paris.lutece.portal.service.plugin.Plugin plugin) throws fr.paris.lutece.portal.service.message.SiteMessageException Returns 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 Map<String,Object> getSearchResultModel(jakarta.servlet.http.HttpServletRequest request, jakarta.enterprise.event.Event<fr.paris.lutece.portal.service.search.QueryEvent> queryEvent) throws fr.paris.lutece.portal.service.message.SiteMessageException Performs 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 Map<String,Object> getSearchResultModel(jakarta.servlet.http.HttpServletRequest request, SolrSearchAppConf conf, jakarta.enterprise.event.Event<fr.paris.lutece.portal.service.search.QueryEvent> queryEvent) throws fr.paris.lutece.portal.service.message.SiteMessageException Performs 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
-