fr.paris.lutece.plugins.comarquage.util.search
Class SearchUtils
java.lang.Object
fr.paris.lutece.plugins.comarquage.util.search.SearchUtils
public final class SearchUtils
- extends java.lang.Object
Help utils for search work
|
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 |
LUCENE_ATTRIBUT_CONTENTS
public static final java.lang.String LUCENE_ATTRIBUT_CONTENTS
- See Also:
- Constant Field Values
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 namestrIndexPath - the pathstrQuery - 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 © 2007 Mairie de Paris. All Rights Reserved.