Fork me on GitHub
  • API

    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

    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
    string docName

    Name of doc tested for relevancy.

    QualityQuery query

    Tested quality query.

    Returns
    Type Description
    bool

    true if relevant, false if not.

    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
    int

    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
    bool

    true if perfectly valid, false if not.

    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.