org.mycore.backend.lucene
Class MCRBuildLuceneQuery
java.lang.Object
org.mycore.backend.lucene.MCRBuildLuceneQuery
public class MCRBuildLuceneQuery
- extends Object
This class builds a Lucene Query from XML query (specified by Frank
Lützenkirchen)
- Version:
- $Revision: 15386 $ $Date: 2009-06-22 09:54:52 +0200 (Mon, 22 Jun 2009) $
- Author:
- Harald Richter
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
search
static Hashtable search
MCRBuildLuceneQuery
public MCRBuildLuceneQuery()
buildLuceneQuery
public static org.apache.lucene.search.Query buildLuceneQuery(org.apache.lucene.search.BooleanQuery r,
boolean reqf,
List f,
org.apache.lucene.analysis.Analyzer analyzer)
throws Exception
- Build Lucene Query from XML
- Returns:
- Lucene Query
- Throws:
Exception
fixQuery
public static String fixQuery(String aQuery)
convertToGermanIndexString
public static String convertToGermanIndexString(String s)
- Converts the given string to lower case and replaces German Umlaute and SZ
- Parameters:
s - the input string
- Returns:
- the converted string