Class 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.XPageApplication
    This 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.String PARAMETER_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.XPage getPage​(javax.servlet.http.HttpServletRequest request, int nMode, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Returns search results
      static 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 conf
      static 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)
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SolrSearchApp

        public SolrSearchApp()
    • 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.SiteMessageException
        Returns search results
        Specified by:
        getPage in interface fr.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.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 java.util.Map<java.lang.String,​java.lang.Object> getSearchResultModel​(javax.servlet.http.HttpServletRequest request,
                                                                                                  SolrSearchAppConf conf)
                                                                                           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 request
        conf - the configuration
        Returns:
        the model
        Throws:
        fr.paris.lutece.portal.service.message.SiteMessageException - if an error occurs