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 QueryMatchingQueryTerms. queryThe 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 QueryMatchingQueryTerms. getQuery()Returns guess what?Methods in org.terrier.matching with parameters of type Query Modifier and Type Method Description voidMatchingQueryTerms. 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. phraseTermsA list of the strings of the phrase terms.protected java.util.ArrayList<Query>BooleanScoreModifier. termsThe 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 QueryRequest. qThis 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 QueryRequest. getQuery()Get the Query syntax treeMethods in org.terrier.querying with parameters of type Query Modifier and Type Method Description voidRequest. 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 classDisjunctiveQueryModels a disjunctive choice in single term queries in a query.classExplicitMultiTermQueryMultiTermQuery where it is denoted by ( ) notationclassFieldQueryModels a query qualified with a field.classMultiTermQueryRepresents a query consisting of more than one terms or other sub-queries, qualified with field, requirement or phrase operators.classPhraseQueryModels a phrase query, which can have a proximity requirement.classRequirementQueryModels a query where the query terms have been qualified with a requirement operator, either plus, or minus.classSegmentQueryUsed to represent a particular segement of the query termsclassSingleTermQueryModels a query of a single term.Fields in org.terrier.querying.parser declared as Query Modifier and Type Field Description protected QueryQuery. childAn 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. vA list for holding the sub-queries.Methods in org.terrier.querying.parser that return Query Modifier and Type Method Description QueryTerrierQLParser. disjunctiveQuery()QueryTerrierQLParser. explicitMultiTermQuery()QueryTerrierQLParser. fieldQuery()QuerySegmentQuery. get(int index)get QueryQueryTerrierQLParser. parse()QueryTerrierQLParser. parseOne()static QueryQueryParser. parseQuery(java.lang.String query)Parse the specified query.static QueryQueryParser. parseQuery(java.lang.String query, java.lang.String qid)Parse the specified query.QueryTerrierQLParser. phraseQuery()QueryTerrierQLParser. requirementQuery()QueryTerrierQLParser. singleTermQuery()Methods in org.terrier.querying.parser with parameters of type Query Modifier and Type Method Description voidMultiTermQuery. add(Query query)Adds a subquery to this query.booleanQuery.ForEachQueryNode. process(Query node, Query... children)process each query nodevoidMultiTermQuery. replace(Query childNode, Query replacement)Replace query nodevoidSegmentQuery. replace(int index, Query replacement)Replace current queryvoidQuery. 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 voidMultiTermQuery. getTerms(java.util.List<Query> alist)Adds all the subqueries and single-term queries to a given array list.protected voidQuery. getTerms(java.util.List<Query> alist)Returns the terms of the query.protected voidSingleTermQuery. getTerms(java.util.List<Query> alist)Adds the query term in the given list of query terms.voidFieldQuery. 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 classvoidFieldQuery. 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 classvoidMultiTermQuery. 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 classvoidMultiTermQuery. 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 classvoidPhraseQuery. 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 classvoidPhraseQuery. 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 voidQuery. 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 voidQuery. 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 classvoidRequirementQuery. 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.voidRequirementQuery. 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.voidSingleTermQuery. 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.voidSingleTermQuery. 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.voidDisjunctiveQuery. obtainAllOf(java.lang.Class<? extends Query> c, java.util.List<Query> a)voidDisjunctiveQuery. obtainAllOf(java.lang.Class<? extends Query> c, java.util.List<Query> a)voidMultiTermQuery. obtainAllOf(java.lang.Class<? extends Query> c, java.util.List<Query> a)voidMultiTermQuery. obtainAllOf(java.lang.Class<? extends Query> c, java.util.List<Query> a)voidQuery. obtainAllOf(java.lang.Class<? extends Query> c, java.util.List<Query> a)Returns all the queries of the specified classvoidQuery. 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.
-