Package org.terrier.querying.parser
Class ExplicitMultiTermQuery
- java.lang.Object
-
- org.terrier.querying.parser.Query
-
- org.terrier.querying.parser.MultiTermQuery
-
- org.terrier.querying.parser.ExplicitMultiTermQuery
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
public class ExplicitMultiTermQuery extends MultiTermQuery
MultiTermQuery where it is denoted by ( ) notation- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.terrier.querying.parser.Query
Query.ForEachQueryNode, Query.QTPBuilder, Query.QueryTermsParameter
-
-
Constructor Summary
Constructors Constructor Description ExplicitMultiTermQuery()
Constructs an instance of the ExplicitMultiTermQuery.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
obtainQueryTerms(MatchingQueryTerms terms, java.lang.String field, java.lang.Boolean required, java.lang.Double parentWeight)
void
obtainQueryTerms(Query.QueryTermsParameter parameters)
void
setWeight(double w)
Sets the weight of the query term.-
Methods inherited from class org.terrier.querying.parser.MultiTermQuery
add, add, apply, applyTermPipeline, clone, getNumberOfTerms, getTerms, getTermsOf, obtainAllOf, obtainControls, parseTree, replace, toString
-
-
-
-
Method Detail
-
obtainQueryTerms
public void obtainQueryTerms(MatchingQueryTerms terms, java.lang.String field, java.lang.Boolean required, java.lang.Double parentWeight)
- Overrides:
obtainQueryTerms
in classMultiTermQuery
-
obtainQueryTerms
public void obtainQueryTerms(Query.QueryTermsParameter parameters)
- Overrides:
obtainQueryTerms
in classMultiTermQuery
-
setWeight
public void setWeight(double w)
Sets the weight of the query term.- Overrides:
setWeight
in classMultiTermQuery
- Parameters:
w
- double the weight of the query term.
-
-