|
Terrier IR Platform 1.1.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.gla.terrier.querying.Request
public class Request
Request SearchRequest contains the details of the search engine for one query, including the query itself, the resultset, and the controls. Controls set application specific parameters, which often load post proceses, and postfilters, or set matching parameter. These are fundamentally, the names of the modules to be used for each stage of a query:
| Constructor Summary | |
|---|---|
Request()
|
|
| Method Summary | |
|---|---|
void |
addMatchingModel(java.lang.String MatchingModelName,
java.lang.String WeightingModelName)
Set the matching model and weighting model that the Manager should use for this query |
java.lang.String |
getControl(java.lang.String Name)
Returns the value of the control. |
java.util.Hashtable |
getControlHashtable()
Get the entire hashtable used for storing controls for this query |
java.lang.String |
getMatchingModel()
returns the name of the matching model that should be used for retrieval |
MatchingQueryTerms |
getMatchingQueryTerms()
Return the MatchingQueryTerms object to use for matching |
int |
getNumberOfDocumentsAfterFiltering()
returns the number of documents in the result set after applying post filters. |
java.lang.String |
getOriginalQuery()
gets the string of the original query, before applying any pre-processing. |
Query |
getQuery()
Get the Query syntax tree |
java.lang.String |
getQueryID()
Returns the query id as set by setQueryID(String). |
ResultSet |
getResultSet()
Returns the resultset generated by the query. |
long |
getStartedProcessingTime()
returns the time when the processing of the request started. |
java.lang.String |
getWeightingModel()
returns the name of the weighting model that should be used for retrieval |
boolean |
isEmpty()
Set if the query input had no terms. |
void |
setControl(java.lang.String Name,
java.lang.String Value)
Set a control named to have value Value. |
void |
setControls(java.util.Hashtable<java.lang.String,java.lang.String> controls)
Use this hashtable to store controls and their values in |
void |
setEmpty(boolean in)
force this query to be seen as containing (no) terms. |
void |
setMatchingQueryTerms(MatchingQueryTerms mqts)
Used by runPreProcessing after the query tree has been aggregated into a list of terms, each containing frequencies. |
void |
setNumberOfDocumentsAfterFiltering(int n)
sets the number of documents in the result set, after applying post filters. |
void |
setOriginalQuery(java.lang.String q)
sets the string of the original query, before applying any pre-processing |
void |
setQuery(Query q)
Set the query to be a parsed Query syntax tree, as generated by the Terrier query parser |
void |
setQueryID(java.lang.String qid)
Set a unique identifier for this query request. |
void |
setResultSet(ResultSet results)
Set the result set returned by this object to be this results. |
void |
setStartedProcessingTime(long startedProcessingTime)
sets the time when the processing of the request started |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Request()
| Method Detail |
|---|
public void addMatchingModel(java.lang.String MatchingModelName,
java.lang.String WeightingModelName)
addMatchingModel in interface SearchRequestMatchingModelName - the String class name that should be usedWeightingModelName - the String class name that should be usedpublic void setQuery(Query q)
setQuery in interface SearchRequestq - The Query object syntax treepublic void setQueryID(java.lang.String qid)
setQueryID in interface SearchRequestqid - the unique string identifier
public void setControl(java.lang.String Name,
java.lang.String Value)
setControl in interface SearchRequestName - the name of the control to set the value of.Value - the value that the control should take.public java.lang.String getControl(java.lang.String Name)
getControl in interface SearchRequestpublic ResultSet getResultSet()
getResultSet in interface SearchRequestpublic java.lang.String getQueryID()
getQueryID in interface SearchRequestpublic Query getQuery()
getQuery in interface SearchRequestpublic boolean isEmpty()
isEmpty in interface SearchRequestpublic java.lang.String getWeightingModel()
public java.lang.String getMatchingModel()
public void setResultSet(ResultSet results)
public java.util.Hashtable getControlHashtable()
public void setEmpty(boolean in)
in - set to true for query to be seen empty.public void setMatchingQueryTerms(MatchingQueryTerms mqts)
mqts - The matchingqueryterms to use for matching.public MatchingQueryTerms getMatchingQueryTerms()
public void setControls(java.util.Hashtable<java.lang.String,java.lang.String> controls)
public void setOriginalQuery(java.lang.String q)
setOriginalQuery in interface SearchRequestpublic java.lang.String getOriginalQuery()
getOriginalQuery in interface SearchRequestpublic void setNumberOfDocumentsAfterFiltering(int n)
setNumberOfDocumentsAfterFiltering in interface SearchRequestpublic int getNumberOfDocumentsAfterFiltering()
getNumberOfDocumentsAfterFiltering in interface SearchRequestpublic long getStartedProcessingTime()
getStartedProcessingTime in interface SearchRequestpublic void setStartedProcessingTime(long startedProcessingTime)
setStartedProcessingTime in interface SearchRequeststartedProcessingTime - the time obtained from a call
to System.currentTimeMillis()
|
Terrier IR Platform 1.1.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||