Show / Hide Table of Contents

    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 Source

    IsRelevant(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

    true if relevant, false if not.

    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    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[] qq

    Quality queries to be validated.

    TextWriter logger

    If not null, validation issues are logged.

    Returns
    Type Description
    System.Boolean

    true if perfectly valid, false if not.

    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)