|
Terrier IR Platform 2.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.gla.terrier.querying.Manager
public class Manager
This class is responsible for handling/co-ordinating the main high-level operations of a query. These are:
Manager m = new Manager(index); SearchRequest srq = m.newSearchRequest("Q1", "term1 title:term2"); m.runPreProcessing(srq); m.runMatching(srq); m.runPostProcess(srq); m.runPostFilters(srq);
Properties
Controls
Field Summary | |
---|---|
static java.lang.String |
NAMESPACE_MATCHING
The default namespace for Matching models to be loaded from |
static java.lang.String |
NAMESPACE_PIPELINE
The default namespace for TermPipeline modules to be loaded from |
static java.lang.String |
NAMESPACE_POSTFILTER
The default namespace for PostFilters to be loaded from |
static java.lang.String |
NAMESPACE_POSTPROCESS
The default namespace for PostProcesses to be loaded from |
static java.lang.String |
NAMESPACE_WEIGHTING
The default namespace for Weighting models to be loaded from |
Constructor Summary | |
---|---|
Manager()
Default constructor. |
|
Manager(Index index)
Construct a Manager using the specified Index |
Method Summary | |
---|---|
Index |
getIndex()
Returns the index used by the manager. |
java.lang.String |
getInfo(SearchRequest srq)
Returns information about the weighting models and the post processors used for the given search request. |
SearchRequest |
newSearchRequest()
Ask for new SearchRequest object to be made. |
SearchRequest |
newSearchRequest(java.lang.String QueryID)
Ask for new SearchRequest object to be made. |
SearchRequest |
newSearchRequest(java.lang.String QueryID,
java.lang.String query)
Ask for new SearchRequest object to be made, instantiated using the specified query id, and that the specified query should be parsed. |
java.lang.String |
pipelineTerm(java.lang.String t)
A term pipeline accessor |
void |
processTerm(java.lang.String t)
Make this object a term pipeline implementor. |
void |
runMatching(SearchRequest srq)
Runs the weighting and matching stage - this the main entry into the rest of the Terrier framework. |
void |
runPostFilters(SearchRequest srq)
Runs the PostFilter modules in order added. |
void |
runPostProcessing(SearchRequest srq)
Runs the PostProcessing modules in order added. |
void |
runPreProcessing(SearchRequest srq)
runPreProcessing |
void |
setProperties(java.util.Properties p)
Set all these properties. |
void |
setProperty(java.lang.String key,
java.lang.String value)
Provide a common interface for changing property values. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String NAMESPACE_POSTPROCESS
public static final java.lang.String NAMESPACE_POSTFILTER
public static final java.lang.String NAMESPACE_MATCHING
public static final java.lang.String NAMESPACE_WEIGHTING
public static final java.lang.String NAMESPACE_PIPELINE
Constructor Detail |
---|
public Manager()
public Manager(Index index)
index
- The index to use in this manageMethod Detail |
---|
public void processTerm(java.lang.String t)
processTerm
in interface TermPipeline
t
- String the term to process.TermPipeline
public java.lang.String pipelineTerm(java.lang.String t)
pipelineTerm
in interface TermPipelineAccessor
t
- String the term to process.
public SearchRequest newSearchRequest()
public SearchRequest newSearchRequest(java.lang.String QueryID)
QueryID
- The request should be identified by QueryIDpublic SearchRequest newSearchRequest(java.lang.String QueryID, java.lang.String query)
QueryID
- The request should be identified by QueryIDquery
- The actual user query
public Index getIndex()
public void setProperty(java.lang.String key, java.lang.String value)
key
- Key of property to setvalue
- Value of property to setpublic void setProperties(java.util.Properties p)
p
- All properties to setpublic void runPreProcessing(SearchRequest srq)
public void runMatching(SearchRequest srq)
srq
- the current SearchRequest object.public void runPostProcessing(SearchRequest srq)
srq
- the current SearchRequest object.public void runPostFilters(SearchRequest srq)
srq
- the current SearchRequest object.public java.lang.String getInfo(SearchRequest srq)
srq
- the search request for which we obtain
the information.
|
Terrier IR Platform 2.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |