public class DisjunctiveQuery extends MultiTermQuery
Query.ForEachQueryNodeprefix, suffix, v| Constructor and Description |
|---|
DisjunctiveQuery()
default constructor
|
DisjunctiveQuery(String[] alternatives)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
double |
getWeight()
Returns the weight of the disjunctive "term".
|
void |
obtainAllOf(Class<? extends Query> c,
List<Query> a)
Returns all the queries of the specified class
|
void |
obtainQueryTerms(MatchingQueryTerms terms)
Prepares the query for matching by transforming
the query objects to a set of query terms.
|
void |
resetActive()
reset active index
|
void |
setActive(int _activeIndex)
set active index
|
void |
setWeight(double w)
Sets the weight of the disjunctive "term".
|
String |
toString()
Returns a string representation of the query.
|
add, add, apply, applyTermPipeline, clone, getNumberOfTerms, getTerms, getTermsOf, obtainControls, obtainQueryTerms, parseTree, replacepublic DisjunctiveQuery(String[] alternatives)
alternatives - public DisjunctiveQuery()
public void setWeight(double w)
w - double the weight of the disjunctive "term".public double getWeight()
public void resetActive()
public void setActive(int _activeIndex)
_activeIndex - public void obtainAllOf(Class<? extends Query> c, List<Query> a)
QueryobtainAllOf in class MultiTermQuerypublic void obtainQueryTerms(MatchingQueryTerms terms)
MultiTermQueryobtainQueryTerms in class MultiTermQueryterms - MatchingQueryTerms the object which holds the
query terms and their modifiers.public String toString()
MultiTermQuerytoString in class MultiTermQueryTerrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow