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".
|
String |
toString()
Returns a string representation of the query.
|
add, add, apply, applyTermPipeline, clone, getNumberOfTerms, getTerms, getTermsOf, obtainControls, obtainQueryTerms, parseTree, replace
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.public String toString()
MultiTermQuery
toString
in class MultiTermQuery
Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow