org.mycore.backend.lucene
Class MCRBuildLuceneQuery

java.lang.Object
  extended by 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

Field Summary
(package private) static Hashtable search
           
 
Constructor Summary
MCRBuildLuceneQuery()
           
 
Method Summary
static org.apache.lucene.search.Query buildLuceneQuery(org.apache.lucene.search.BooleanQuery r, boolean reqf, List f, org.apache.lucene.analysis.Analyzer analyzer)
          Build Lucene Query from XML
static String convertToGermanIndexString(String s)
          Converts the given string to lower case and replaces German Umlaute and SZ
static String fixQuery(String aQuery)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

search

static Hashtable search
Constructor Detail

MCRBuildLuceneQuery

public MCRBuildLuceneQuery()
Method Detail

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