Uses of Class
org.terrier.querying.parser.Query
-
Packages that use Query Package Description org.terrier.matching Provides the classes and interfaces used for matching documents to queries.org.terrier.matching.dsms Provides the interface and the classes for modifying the scores of documents after an score has been assigned to documents, or implementing the combination of evidence.org.terrier.querying Provides the interfaces and classes for the querying API of the Terrier platform, the controls, post processors and filters.org.terrier.querying.parser Provides the parser specification and the classes that implement the query language of the Terrier platform. -
-
Uses of Query in org.terrier.matching
Fields in org.terrier.matching declared as Query Modifier and Type Field Description protected Query
MatchingQueryTerms. query
The original query as it came from the parser, in case any TSMs or DSMs wish to refer to itMethods in org.terrier.matching that return Query Modifier and Type Method Description Query
MatchingQueryTerms. getQuery()
Returns guess what?Methods in org.terrier.matching with parameters of type Query Modifier and Type Method Description void
MatchingQueryTerms. setQuery(Query q)
Allows the manager to set the query that was used to query the system. -
Uses of Query in org.terrier.matching.dsms
Fields in org.terrier.matching.dsms with type parameters of type Query Modifier and Type Field Description protected java.util.List<Query>
PhraseScoreModifier. phraseTerms
A list of the strings of the phrase terms.protected java.util.ArrayList<Query>
BooleanScoreModifier. terms
The terms to check.Methods in org.terrier.matching.dsms with parameters of type Query Modifier and Type Method Description protected java.util.HashSet<java.lang.String>
BooleanFallback. getMinusTerms(Query q)
Builds a hashset containing all terms that are required NOT to be in the queryConstructor parameters in org.terrier.matching.dsms with type arguments of type Query Constructor Description BooleanScoreModifier(java.util.ArrayList<Query> ts)
A constructor where we specify which of the query terms should exist in the documents.PhraseScoreModifier(java.util.List<Query> pTerms)
Constructs a phrase score modifier for a given set of query terms.PhraseScoreModifier(java.util.List<Query> pTerms, boolean r)
Constructs a phrase score modifier for a given set of query terms.PhraseScoreModifier(java.util.List<Query> pTerms, boolean r, int bDist)
Constructs a phrase score modifier for a given set of query terms, whether they are required to appear in a document, and the allowed distance between the phrase terms.PhraseScoreModifier(java.util.List<Query> pTerms, int bDist)
Constructs a phrase score modifier for a given set of query terms and the allowed distance between them. -
Uses of Query in org.terrier.querying
Fields in org.terrier.querying declared as Query Modifier and Type Field Description protected Query
Request. q
This contains the parsed syntax tree of the query, as generated by the Antlr parserMethods in org.terrier.querying that return Query Modifier and Type Method Description Query
Request. getQuery()
Get the Query syntax treeMethods in org.terrier.querying with parameters of type Query Modifier and Type Method Description void
Request. setQuery(Query _q)
Set the query to be a parsed Query syntax tree, as generated by the Terrier query parser -
Uses of Query in org.terrier.querying.parser
Subclasses of Query in org.terrier.querying.parser Modifier and Type Class Description class
DisjunctiveQuery
Models a disjunctive choice in single term queries in a query.class
ExplicitMultiTermQuery
MultiTermQuery where it is denoted by ( ) notationclass
FieldQuery
Models a query qualified with a field.class
MultiTermQuery
Represents a query consisting of more than one terms or other sub-queries, qualified with field, requirement or phrase operators.class
PhraseQuery
Models a phrase query, which can have a proximity requirement.class
RequirementQuery
Models a query where the query terms have been qualified with a requirement operator, either plus, or minus.class
SegmentQuery
Used to represent a particular segement of the query termsclass
SingleTermQuery
Models a query of a single term.Fields in org.terrier.querying.parser declared as Query Modifier and Type Field Description protected Query
Query. child
An encapsulated query.Fields in org.terrier.querying.parser with type parameters of type Query Modifier and Type Field Description protected java.util.ArrayList<Query>
MultiTermQuery. v
A list for holding the sub-queries.Methods in org.terrier.querying.parser that return Query Modifier and Type Method Description Query
TerrierQLParser. disjunctiveQuery()
Query
TerrierQLParser. explicitMultiTermQuery()
Query
TerrierQLParser. fieldQuery()
Query
SegmentQuery. get(int index)
get QueryQuery
TerrierQLParser. parse()
Query
TerrierQLParser. parseOne()
static Query
QueryParser. parseQuery(java.lang.String query)
Parse the specified query.static Query
QueryParser. parseQuery(java.lang.String query, java.lang.String qid)
Parse the specified query.Query
TerrierQLParser. phraseQuery()
Query
TerrierQLParser. requirementQuery()
Query
TerrierQLParser. singleTermQuery()
Methods in org.terrier.querying.parser with parameters of type Query Modifier and Type Method Description void
MultiTermQuery. add(Query query)
Adds a subquery to this query.boolean
Query.ForEachQueryNode. process(Query node, Query... children)
process each query nodevoid
MultiTermQuery. replace(Query childNode, Query replacement)
Replace query nodevoid
SegmentQuery. replace(int index, Query replacement)
Replace current queryvoid
Query. setChild(Query q)
Sets the subquery object of this query.Method parameters in org.terrier.querying.parser with type arguments of type Query Modifier and Type Method Description protected void
MultiTermQuery. getTerms(java.util.List<Query> alist)
Adds all the subqueries and single-term queries to a given array list.protected void
Query. getTerms(java.util.List<Query> alist)
Returns the terms of the query.protected void
SingleTermQuery. getTerms(java.util.List<Query> alist)
Adds the query term in the given list of query terms.void
FieldQuery. getTermsOf(java.lang.Class<? extends Query> c, java.util.List<Query> alist, boolean req)
Returns all the query terms, in subqueries that are instances of a given classvoid
FieldQuery. getTermsOf(java.lang.Class<? extends Query> c, java.util.List<Query> alist, boolean req)
Returns all the query terms, in subqueries that are instances of a given classvoid
MultiTermQuery. getTermsOf(java.lang.Class<? extends Query> c, java.util.List<Query> alist, boolean req)
Returns all the query terms, in subqueries that are instances of a given classvoid
MultiTermQuery. getTermsOf(java.lang.Class<? extends Query> c, java.util.List<Query> alist, boolean req)
Returns all the query terms, in subqueries that are instances of a given classvoid
PhraseQuery. getTermsOf(java.lang.Class<? extends Query> c, java.util.List<Query> alist, boolean req)
Returns all the query terms, in subqueries that are instances of a given classvoid
PhraseQuery. getTermsOf(java.lang.Class<? extends Query> c, java.util.List<Query> alist, boolean req)
Returns all the query terms, in subqueries that are instances of a given classabstract void
Query. getTermsOf(java.lang.Class<? extends Query> c, java.util.List<Query> alist, boolean req)
Returns all the query terms, in subqueries that are instances of a given classabstract void
Query. getTermsOf(java.lang.Class<? extends Query> c, java.util.List<Query> alist, boolean req)
Returns all the query terms, in subqueries that are instances of a given classvoid
RequirementQuery. getTermsOf(java.lang.Class<? extends Query> c, java.util.List<Query> alist, boolean req)
Returns all the query terms, in subqueries that are instances of a given class.void
RequirementQuery. getTermsOf(java.lang.Class<? extends Query> c, java.util.List<Query> alist, boolean req)
Returns all the query terms, in subqueries that are instances of a given class.void
SingleTermQuery. getTermsOf(java.lang.Class<? extends Query> c, java.util.List<Query> alist, boolean req)
An empty method because the single term query cannot have children.void
SingleTermQuery. getTermsOf(java.lang.Class<? extends Query> c, java.util.List<Query> alist, boolean req)
An empty method because the single term query cannot have children.void
DisjunctiveQuery. obtainAllOf(java.lang.Class<? extends Query> c, java.util.List<Query> a)
void
DisjunctiveQuery. obtainAllOf(java.lang.Class<? extends Query> c, java.util.List<Query> a)
void
MultiTermQuery. obtainAllOf(java.lang.Class<? extends Query> c, java.util.List<Query> a)
void
MultiTermQuery. obtainAllOf(java.lang.Class<? extends Query> c, java.util.List<Query> a)
void
Query. obtainAllOf(java.lang.Class<? extends Query> c, java.util.List<Query> a)
Returns all the queries of the specified classvoid
Query. obtainAllOf(java.lang.Class<? extends Query> c, java.util.List<Query> a)
Returns all the queries of the specified classConstructors in org.terrier.querying.parser with parameters of type Query Constructor Description FieldQuery(Query q)
Constructs a field query from the given query.FieldQuery(Query q, java.lang.String f)
Constructs a field query from the given query and the given field.
-