|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemath.omdocjdom.index.QueryMaker
org.activemath.omdocjdom.index.queries.
public class QueryMaker
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 |
|---|
public QueryMaker()
| Method Detail |
|---|
public static org.apache.lucene.search.Query singleWordQuery(String word,
List languages,
boolean prefix,
boolean fuzzy,
boolean withPhonetic,
boolean phrase)
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.
AMIndex.
public static org.apache.lucene.search.Query singleOMSymbolQuery(OJElement elt,
List languages,
AuthorExtendedMBaseRef mbaseRef)
public static org.apache.lucene.search.Query metadataAttributeQuery(String attributeName,
String value)
public static org.apache.lucene.search.Query itemTypeQuery(String typeName)
public static org.apache.lucene.search.Query omobjQuery(OJElement omobjElement,
List languages,
AuthorExtendedMBaseRef mbaseRef)
omobjElement -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||