Package org.terrier.applications
Class AbstractQuerying
- java.lang.Object
-
- org.terrier.applications.AbstractQuerying
-
- Direct Known Subclasses:
InteractiveQuerying
,TRECQuerying
public class AbstractQuerying extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractQuerying.AbstractQueryingCommand
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.String,java.lang.String>
controls
protected IndexRef
indexref
The data structures used.protected int
matchingCount
the number of processed queries.protected boolean
matchopQl
protected Manager
queryingManager
The query manager.
-
Constructor Summary
Constructors Constructor Description AbstractQuerying(java.lang.String _appName)
AbstractQuerying(java.lang.String _appName, IndexRef iRef)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>
controls()
protected void
createManager()
Create a querying manager.SearchRequest
processQuery(java.lang.String queryId, java.lang.String query)
According to the given parameters, it sets up the correct matching class.
-
-
-
Field Detail
-
matchopQl
protected boolean matchopQl
-
controls
protected java.util.Map<java.lang.String,java.lang.String> controls
-
matchingCount
protected int matchingCount
the number of processed queries.
-
queryingManager
protected Manager queryingManager
The query manager.
-
indexref
protected IndexRef indexref
The data structures used.
-
-
Constructor Detail
-
AbstractQuerying
public AbstractQuerying(java.lang.String _appName, IndexRef iRef)
-
AbstractQuerying
public AbstractQuerying(java.lang.String _appName)
-
-
Method Detail
-
createManager
protected void createManager()
Create a querying manager.
-
processQuery
public SearchRequest processQuery(java.lang.String queryId, java.lang.String query)
According to the given parameters, it sets up the correct matching class.- Parameters:
queryId
- String the query identifier to use.query
- String the query to process.
-
controls
public java.util.Map<java.lang.String,java.lang.String> controls()
-
-