Interface IJudge
Judge if a document is relevant for a quality query.
Namespace: Lucene.Net.Benchmarks.Quality
Assembly: Lucene.Net.Benchmark.dll
Syntax
public interface IJudge
  Methods
| Improve this Doc View SourceIsRelevant(String, QualityQuery)
Judge if document docName is relevant for the given quality query.
Declaration
bool IsRelevant(string docName, QualityQuery query)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | docName | Name of doc tested for relevancy.  | 
      
| QualityQuery | query | Tested quality query.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Boolean | 
  | 
      
MaxRecall(QualityQuery)
Return the maximal recall for the input quality query. It is the number of relevant docs this IJudge "knows" for the query.
Declaration
int MaxRecall(QualityQuery query)
  Parameters
| Type | Name | Description | 
|---|---|---|
| QualityQuery | query | The query whose maximal recall is needed.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Int32 | 
ValidateData(QualityQuery[], TextWriter)
Validate that queries and this IJudge match each other. To be perfectly valid, this Judge must have some data for each and every input quality query, and must not have any data on any other quality query. Note: the quality benchmark run would not fail in case of imperfect validity, just a warning message would be logged.
Declaration
bool ValidateData(QualityQuery[] qq, TextWriter logger)
  Parameters
| Type | Name | Description | 
|---|---|---|
| QualityQuery[] | Quality queries to be validated.  | 
      |
| System.IO.TextWriter | logger | If not   | 
      
Returns
| Type | Description | 
|---|---|
| System.Boolean | 
  |