fr.paris.lutece.plugins.jcr.service.jcrsearch
Class JcrSearchService

java.lang.Object
  extended by fr.paris.lutece.plugins.jcr.service.jcrsearch.JcrSearchService

public class JcrSearchService
extends Object

JcrSearchService


Method Summary
static JcrSearchService getInstance()
          Gets the JcrSearchService instance
 List<String> getMIMETypeList()
          Finds MIME types of all jsr170 indexed documents
 List<fr.paris.lutece.portal.service.search.SearchResult> getSearchResults(String strQuery, boolean bTitle, String strOperator, Date dateBegin, Date dateEnd, String strMIMEType, fr.paris.lutece.portal.service.security.LuteceUser user)
          Returns search results
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static JcrSearchService getInstance()
Gets the JcrSearchService instance

Returns:
the service instance

getSearchResults

public List<fr.paris.lutece.portal.service.search.SearchResult> getSearchResults(String strQuery,
                                                                                 boolean bTitle,
                                                                                 String strOperator,
                                                                                 Date dateBegin,
                                                                                 Date dateEnd,
                                                                                 String strMIMEType,
                                                                                 fr.paris.lutece.portal.service.security.LuteceUser user)
Returns search results

Parameters:
strQuery - the search query
bTitle - true if the query must search on the title field only
strOperator -
  • "OR" to search on each word
  • "AND" to search on all words
  • /
      dateBegin - the date after which results must have been edited (inclusive)
      dateEnd - the date before which results must have been edited (exclusive)
      strMIMEType - the MIME type to search on
      user - the registered lutece user from who the query occurred
      Returns:
      the search result

getMIMETypeList

public List<String> getMIMETypeList()
Finds MIME types of all jsr170 indexed documents

Returns:
a list of MIME types


Copyright © 2014 Mairie de Paris. All Rights Reserved.