public class InteractiveQuerying extends AbstractQuerying
Properties:
| Modifier and Type | Class and Description |
|---|---|
static class |
InteractiveQuerying.Command |
AbstractQuerying.AbstractQueryingCommand| Modifier and Type | Field and Description |
|---|---|
static String |
INTERACTIVE_COMMAND |
protected static org.slf4j.Logger |
logger
The logger used
|
protected static boolean |
lowercase
Change to lowercase?
|
protected String[] |
metaKeys |
protected boolean |
printDocid |
protected PrintWriter |
resultFile
The file to store the output to.
|
protected static int |
RESULTS_LENGTH
The maximum number of presented results.
|
protected boolean |
verbose
display user prompts
|
controls, indexref, matchingCount, matchopQl, queryingManager| Constructor and Description |
|---|
InteractiveQuerying()
A default constructor initialises the index, and the Manager.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the used structures.
|
static void |
main(String[] args)
Starts the interactive query application.
|
void |
printResults(PrintWriter pw,
SearchRequest q)
Prints the results
|
void |
processQueries()
Performs the matching using the specified weighting model
from the setup and possibly a combination of evidence mechanism.
|
SearchRequest |
processQuery(String queryId,
String query)
According to the given parameters, it sets up the correct matching class.
|
createManagerpublic static final String INTERACTIVE_COMMAND
protected static final org.slf4j.Logger logger
protected static final boolean lowercase
protected boolean verbose
protected PrintWriter resultFile
protected static int RESULTS_LENGTH
protected String[] metaKeys
protected boolean printDocid
public InteractiveQuerying()
public void close()
public SearchRequest processQuery(String queryId, String query)
processQuery in class AbstractQueryingqueryId - String the query identifier to use.query - String the query to process.public void processQueries()
public void printResults(PrintWriter pw, SearchRequest q) throws IOException
pw - PrintWriter the file to write the results to.q - SearchRequest the search request to get results from.IOExceptionpublic static void main(String[] args)
args - the command line arguments.Terrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow