fr.paris.lutece.plugins.comarquage.util.search
Class SearchUtils

java.lang.Object
  extended by fr.paris.lutece.plugins.comarquage.util.search.SearchUtils

public final class SearchUtils
extends java.lang.Object

Help utils for search work


Field Summary
static java.lang.String LUCENE_ATTRIBUT_CONTENTS
           
 
Method Summary
static void closeReader()
          Close the index reader
static org.apache.lucene.search.Hits search(java.lang.String strPluginName, java.lang.String strIndexPath, java.lang.String strQuery)
          Searches the card
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LUCENE_ATTRIBUT_CONTENTS

public static final java.lang.String LUCENE_ATTRIBUT_CONTENTS
See Also:
Constant Field Values
Method Detail

search

public static org.apache.lucene.search.Hits search(java.lang.String strPluginName,
                                                   java.lang.String strIndexPath,
                                                   java.lang.String strQuery)
                                            throws java.io.IOException,
                                                   org.apache.lucene.queryParser.ParseException
Searches the card

Parameters:
strPluginName - the plugin name
strIndexPath - the path
strQuery - the query
Returns:
the hits
Throws:
java.io.IOException - if the index reader can not open the index
org.apache.lucene.queryParser.ParseException - if an error occured during the parsing of the query

closeReader

public static void closeReader()
Close the index reader



Copyright © 2008 Mairie de Paris. All Rights Reserved.