public class DisjunctiveQuery extends MultiTermQuery
Query.ForEachQueryNode, Query.QTPBuilder, Query.QueryTermsParameterprefix, 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, replacepublic DisjunctiveQuery(String[] alternatives)
alternatives - public DisjunctiveQuery()
public void setWeight(double w)
setWeight in class MultiTermQueryw - 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 MultiTermQuerypublic void obtainQueryTerms(Query.QueryTermsParameter parameters)
obtainQueryTerms in class MultiTermQuerypublic void obtainAllOf(Class<? extends Query> c, List<Query> a)
QueryobtainAllOf in class MultiTermQuerypublic String toString()
MultiTermQuerytoString in class MultiTermQueryTerrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow