public class TRECDocnoOutputFormat extends Object implements OutputFormat
| Modifier and Type | Field and Description | 
|---|---|
| protected static org.slf4j.Logger | loggerThe logger used | 
| Constructor and Description | 
|---|
| TRECDocnoOutputFormat(Index _index)Create a TRECDocnoOutputFormat using the specified index for
 looking up the docnos | 
| Modifier and Type | Method and Description | 
|---|---|
| protected String[] | obtainDocnos(String metaIndexDocumentKey,
            SearchRequest q,
            ResultSet set)method which extracts the docnos for the prescribed resultset | 
| void | printResults(PrintWriter pw,
            SearchRequest q,
            String method,
            String iteration,
            int _RESULTS_LENGTH)Prints the results for the given search request, using the specified
 destination. | 
public TRECDocnoOutputFormat(Index _index)
protected String[] obtainDocnos(String metaIndexDocumentKey, SearchRequest q, ResultSet set) throws IOException
IOExceptionpublic void printResults(PrintWriter pw, SearchRequest q, String method, String iteration, int _RESULTS_LENGTH) throws IOException
printResults in interface OutputFormatpw - PrintWriter the destination where to save the results.q - SearchRequest the object encapsulating the query and the
            results.IOExceptionTerrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow