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

java.lang.Object
  extended by fr.paris.lutece.plugins.jcr.service.jcrsearch.JcrLuceneSearchEngine
All Implemented Interfaces:
JcrSearchEngine

public class JcrLuceneSearchEngine
extends Object
implements JcrSearchEngine

JcrLuceneSearchEngine


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

Constructor Detail

JcrLuceneSearchEngine

public JcrLuceneSearchEngine()
Method Detail

getSearchResult

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

Specified by:
getSearchResult in interface JcrSearchEngine
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

Specified by:
getMIMETypeList in interface JcrSearchEngine
Returns:
a list of MIME types


Copyright © 2014 Mairie de Paris. All Rights Reserved.