| java.lang.Object org.apache.lucene.benchmark.quality.QualityBenchmark
Method Summary | |
public QualityStats[] | execute(Judge judge, SubmissionReport submitRep, PrintWriter qualityLog) Run the quality benchmark.
Parameters: judge - the judge that can tell if a certain result doc is relevant for a certain quality query. | public int | getMaxQueries() the maximum number of quality queries to run. | public int | getMaxResults() | public void | setMaxQueries(int maxQueries) Set the maximum number of quality queries to run. | public void | setMaxResults(int maxResults) set the maximum number of results to collect for each quality query. |
docNameField | protected String docNameField(Code) | | index field to extract doc name for each search result; used for judging the results.
|
qualityQueries | protected QualityQuery qualityQueries(Code) | | Quality Queries that this quality benchmark would execute.
|
QualityBenchmark | public QualityBenchmark(QualityQuery qqs, QualityQueryParser qqParser, Searcher searcher, String docNameField)(Code) | | Create a QualityBenchmark.
Parameters: qqs - quality queries to run. Parameters: qqParser - parser for turning QualityQueries into Lucene Queries. Parameters: searcher - index to be searched. Parameters: docNameField - name of field containg the document name.This allows to extract the doc name for search results,and is important for judging the results. |
execute | public QualityStats[] execute(Judge judge, SubmissionReport submitRep, PrintWriter qualityLog) throws Exception(Code) | | Run the quality benchmark.
Parameters: judge - the judge that can tell if a certain result doc is relevant for a certain quality query. If null, no judgements would be made. Usually null for a submission run. Parameters: submitRep - submission report is created if non null. Parameters: qualityLog - If not null, quality run data would be printed for each query. QualityStats of each quality query that was executed. throws: Exception - if quality benchmark failed to run. |
getMaxQueries | public int getMaxQueries()(Code) | | the maximum number of quality queries to run. Useful at debugging. |
getMaxResults | public int getMaxResults()(Code) | | the maximum number of results to collect for each quality query. |
setMaxQueries | public void setMaxQueries(int maxQueries)(Code) | | Set the maximum number of quality queries to run. Useful at debugging.
|
setMaxResults | public void setMaxResults(int maxResults)(Code) | | set the maximum number of results to collect for each quality query.
|
|
|