org.activemath.omdocjdom.index
Class QueryMaker

java.lang.Object
  extended by org.activemath.omdocjdom.index.QueryMaker

Deprecated. This class should be replaced by the classes of the package org.activemath.omdocjdom.index.queries.

public class QueryMaker
extends Object

A set of utility methods that will create Query objects.


Constructor Summary
QueryMaker()
          Deprecated.  
 
Method Summary
static org.apache.lucene.search.Query itemTypeQuery(String typeName)
          Deprecated.  
static org.apache.lucene.search.Query metadataAttributeQuery(String attributeName, String value)
          Deprecated.  
static org.apache.lucene.search.Query omobjQuery(OJElement omobjElement, List languages, AuthorExtendedMBaseRef mbaseRef)
          Deprecated. Currently only makes a matcher that matches all OMS that appear there.
static org.apache.lucene.search.Query singleOMSymbolQuery(OJElement elt, List languages, AuthorExtendedMBaseRef mbaseRef)
          Deprecated.  
static org.apache.lucene.search.Query singleWordQuery(String word, List languages, boolean prefix, boolean fuzzy, boolean withPhonetic, boolean phrase)
          Deprecated. Creates a query that searches the given word with higher boost for titles then for text and with higher boost for first languages than subsequent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryMaker

public QueryMaker()
Deprecated. 
Method Detail

singleWordQuery

public static org.apache.lucene.search.Query singleWordQuery(String word,
                                                             List languages,
                                                             boolean prefix,
                                                             boolean fuzzy,
                                                             boolean withPhonetic,
                                                             boolean phrase)
Deprecated. 
Creates a query that searches the given word with higher boost for titles then for text and with higher boost for first languages than subsequent.

Parameters:
word -
languages -
prefix - will match by prefix (e.g. "blop*"). Incompatible with fuzzy.
fuzzy - will match with levenstein edit distance (e.g. change a character, get less score). Incompatible with prefix.
Returns:
a query that can be applied to AMIndex.

singleOMSymbolQuery

public static org.apache.lucene.search.Query singleOMSymbolQuery(OJElement elt,
                                                                 List languages,
                                                                 AuthorExtendedMBaseRef mbaseRef)
Deprecated. 

metadataAttributeQuery

public static org.apache.lucene.search.Query metadataAttributeQuery(String attributeName,
                                                                    String value)
Deprecated. 

itemTypeQuery

public static org.apache.lucene.search.Query itemTypeQuery(String typeName)
Deprecated. 

omobjQuery

public static org.apache.lucene.search.Query omobjQuery(OJElement omobjElement,
                                                        List languages,
                                                        AuthorExtendedMBaseRef mbaseRef)
Deprecated. 
Currently only makes a matcher that matches all OMS that appear there.

Parameters:
omobjElement -
Returns: