fr.paris.lutece.plugins.search.solr.web
Class SolrSearchApp

java.lang.Object
  extended by fr.paris.lutece.plugins.search.solr.web.SolrSearchApp
All Implemented Interfaces:
fr.paris.lutece.portal.web.xpages.XPageApplication

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.


Constructor Summary
SolrSearchApp()
           
 
Method Summary
static java.util.Map<java.lang.String,java.lang.Object> getLastSearchModel(javax.servlet.http.HttpServletRequest request)
          Deprecated. model is not stored in session anymore
 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)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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)

Parameters:
request - the request
Returns:
the model
Throws:
fr.paris.lutece.portal.service.message.SiteMessageException - if an error occurs

getLastSearchModel

@Deprecated
public static java.util.Map<java.lang.String,java.lang.Object> getLastSearchModel(javax.servlet.http.HttpServletRequest request)
Deprecated. model is not stored in session anymore

Return the model used during the last search

Parameters:
request - The HTTP request.
Returns:
the model used during the last search


Copyright © 2011 Mairie de Paris. All Rights Reserved.