public class DisjunctiveQuery extends MultiTermQuery
Query.ForEachQueryNode
prefix, 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".
|
add, add, apply, applyTermPipeline, clone, getNumberOfTerms, getTerms, getTermsOf, obtainControls, obtainQueryTerms, parseTree, replace, toString
public 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)
Query
obtainAllOf
in class MultiTermQuery
public void obtainQueryTerms(MatchingQueryTerms terms)
MultiTermQuery
obtainQueryTerms
in class MultiTermQuery
terms
- MatchingQueryTerms the object which holds the
query terms and their modifiers.Terrier 4.0. Copyright © 2004-2014 University of Glasgow