public class Manager extends Object
 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
| Modifier and Type | Field and Description | 
|---|---|
| protected Set<String> | Allowed_ControlsThis contains a list of controls that may be set in the querying API | 
| protected Map<Index,Map<String,Matching>> | Cache_MatchingCache loaded Matching models per Index in this map | 
| protected Map<String,PostFilter> | Cache_PostFilterCache loaded PostFitler models in this map | 
| protected Map<String,PostProcess> | Cache_PostProcessCache loaded PostProcess models in this map | 
| protected Map<String,Process> | Cache_PreProcessCache loaded PostProcess models in this map | 
| protected boolean | CACHING_FILTERS | 
| protected Map<String,String> | Default_ControlsThis contains the mapping of controls and their values that should be 
 set identially for each query created by this Manager | 
| protected int | Defaults_SizeHow many default controls exist. | 
| protected Index | indexThe index this querying comes from | 
| protected static org.slf4j.Logger | logger | 
| protected boolean | MATCH_EMPTY_QUERY | 
| static String | NAMESPACE_MATCHINGThe default namespace for Matching models to be loaded from | 
| static String | NAMESPACE_POSTFILTERThe default namespace for PostFilters to be loaded from | 
| static String | NAMESPACE_POSTPROCESSThe default namespace for PostProcesses to be loaded from | 
| static String | NAMESPACE_PREPROCESSThe default namespace for PreProcesses to be loaded from | 
| static String | NAMESPACE_WEIGHTINGThe default namespace for Weighting models to be loaded from | 
| protected String | pipelineOutputThis class is used as a TermPipelineAccessor, and this variable stores
 the result of the TermPipeline run for that term. | 
| protected String[][] | PostFilters_ControlsA 2d array, contains (on 2nd level) the list of controls that turn on the PostFilters
 at the same 1st level place on PostFilters_Order | 
| protected String[] | PostFilters_OrderAn ordered list of post filters names. | 
| protected String[][] | PostProcesses_ControlsA 2d array, contains (on 2nd level) the list of controls that turn on the PostProcesses
 at the same 1st level place on PostProcesses_Order | 
| protected String[] | PostProcesses_OrderAn ordered list of post process names. | 
| protected String[][] | PreProcesses_ControlsA 2d array, contains (on 2nd level) the list of controls that turn on the PostProcesses
 at the same 1st level place on PostProcesses_Order | 
| protected String[] | PreProcesses_OrderAn ordered list of post process names. | 
| protected static String[][] | tinyDoubleStringArray | 
| protected static String[] | tinySingleStringArray | 
| protected TermPipelineAccessor | tpaTermPipeline processing | 
| Constructor and Description | 
|---|
| Manager()Default constructor. | 
| Manager(Index _index)Construct a Manager using the specified Index
 Throws IllegalArgumentException if the specified index is null | 
| Modifier and Type | Method and Description | 
|---|---|
| Index | getIndex()Returns the index used by the manager. | 
| String | getInfo(SearchRequest srq)Returns information about the weighting models and 
 the post processors used for the given search request. | 
| protected Matching | getMatchingModel(Request rq)Returns the matching model indicated to be used, based on the Index and the Matching
 name specified in the passed Request object. | 
| protected PostFilter | getPostFilterModule(String Name)Returns the post filter class named ModelName. | 
| protected PostProcess | getPostProcessModule(String Name)Returns the PostProcess named Name. | 
| protected Process | getPreProcessModule(String Name)Returns the PostProcess named Name. | 
| protected Model | getWeightingModel(Request rq)Returns the weighting model requested by the Reqes from
 the WeightingModel factory. | 
| protected void | load_controls_allowed()load in the controls that user is allowed to set | 
| protected void | load_controls_default()load in the control defaults | 
| protected void | load_pipeline()load in the term pipeline | 
| protected void | load_postfilters_controls()load in the allowed post filter controls, and the order to run post processes in | 
| protected void | load_postprocess_controls()load in the allowed postprocceses controls, and the order to run post processes in | 
| protected void | load_preprocess_controls()load in the allowed postprocceses controls, and the order to run post processes in | 
| SearchRequest | newSearchRequest()Ask for new SearchRequest object to be made. | 
| SearchRequest | newSearchRequest(String QueryID)Ask for new SearchRequest object to be made. | 
| SearchRequest | newSearchRequest(String QueryID,
                String query)Ask for new SearchRequest object to be made, instantiated using the 
 specified query id, and that the specified query should be parsed. | 
| 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 | 
| protected void | setDefaults(Request srq)Set the default values for the controls of this new search request | 
| void | setProperties(Properties p)Set all these properties. | 
| void | setProperty(String key,
           String value)Provide a common interface for changing property values. | 
| protected void | useThisIndex(Index i)use the index specified for the Manager | 
protected static final org.slf4j.Logger logger
public static final String NAMESPACE_POSTPROCESS
public static final String NAMESPACE_PREPROCESS
public static final String NAMESPACE_POSTFILTER
public static final String NAMESPACE_MATCHING
public static final String NAMESPACE_WEIGHTING
protected Map<Index,Map<String,Matching>> Cache_Matching
protected Map<String,PostProcess> Cache_PostProcess
protected Map<String,Process> Cache_PreProcess
protected Map<String,PostFilter> Cache_PostFilter
protected TermPipelineAccessor tpa
protected Index index
protected Set<String> Allowed_Controls
protected Map<String,String> Default_Controls
protected int Defaults_Size
protected String[] PostProcesses_Order
protected String[][] PostProcesses_Controls
protected String[] PreProcesses_Order
protected String[][] PreProcesses_Controls
protected String[] PostFilters_Order
protected String[][] PostFilters_Controls
protected String pipelineOutput
protected boolean CACHING_FILTERS
protected final boolean MATCH_EMPTY_QUERY
protected static final String[] tinySingleStringArray
protected static final String[][] tinyDoubleStringArray
public Manager()
public Manager(Index _index)
_index - The index to use in this manageprotected void useThisIndex(Index i)
protected void load_controls_allowed()
protected void load_controls_default()
protected void load_postprocess_controls()
protected void load_preprocess_controls()
protected void load_postfilters_controls()
protected void load_pipeline()
public SearchRequest newSearchRequest()
public SearchRequest newSearchRequest(String QueryID)
QueryID - The request should be identified by QueryIDpublic SearchRequest newSearchRequest(String QueryID, String query)
QueryID - The request should be identified by QueryIDquery - The actual user queryprotected void setDefaults(Request srq)
srq - The search request to have the default set to. This is
  done using the Default_Controls table, which is loaded by the load_controls_default
  method. The default are set in the properties file, by the querying.default.controlspublic Index getIndex()
public void setProperty(String key, String value)
key - Key of property to setvalue - Value of property to setpublic void setProperties(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.protected Matching getMatchingModel(Request rq)
rq - The request indicating the Matching class, and the corresponding
 instance to useprotected Model getWeightingModel(Request rq)
rq - The name of the weighting model to instantiateprotected PostProcess getPostProcessModule(String Name)
Name - The name of the post process to return.protected Process getPreProcessModule(String Name)
Name - The name of the post process to return.protected PostFilter getPostFilterModule(String Name)
Name - The name of the post filter to returnpublic String getInfo(SearchRequest srq)
srq - the search request for which we obtain 
                the information.Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow