public class DisjunctiveQuery extends MultiTermQuery
Query.ForEachQueryNode, Query.QTPBuilder, Query.QueryTermsParameter
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,
String field,
Boolean required,
Double weight) |
void |
obtainQueryTerms(Query.QueryTermsParameter parameters) |
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, parseTree, replace
public DisjunctiveQuery(String[] alternatives)
alternatives
- public DisjunctiveQuery()
public void setWeight(double w)
setWeight
in class MultiTermQuery
w
- double the weight of the disjunctive "term".public double getWeight()
public void resetActive()
public void setActive(int _activeIndex)
_activeIndex
- public void obtainQueryTerms(MatchingQueryTerms terms, String field, Boolean required, Double weight)
obtainQueryTerms
in class MultiTermQuery
public void obtainQueryTerms(Query.QueryTermsParameter parameters)
obtainQueryTerms
in class MultiTermQuery
public void obtainAllOf(Class<? extends Query> c, List<Query> a)
Query
obtainAllOf
in class MultiTermQuery
public String toString()
MultiTermQuery
toString
in class MultiTermQuery
Terrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow