Show / Hide Table of Contents

    Class QualityQuery

    A QualityQuery has an ID and some name-value pairs.

    The ID allows to map the quality query with its judgements.

    The name-value pairs are used by a IQualityQueryParser to create a Lucene Query.

    It is very likely that name-value-pairs would be mapped into fields in a Lucene query, but it is up to the QualityQueryParser how to map - e.g. all values in a single field, or each pair as its own field, etc., - and this of course must match the way the searched index was constructed.

    Inheritance
    System.Object
    QualityQuery
    Namespace: Lucene.Net.Benchmarks.Quality
    Assembly: Lucene.Net.Benchmark.dll
    Syntax
    public class QualityQuery : IComparable<QualityQuery>

    Constructors

    | Improve this Doc View Source

    QualityQuery(String, IDictionary<String, String>)

    Create a QualityQuery with given ID and name-value pairs.

    Declaration
    public QualityQuery(string queryID, IDictionary<string, string> nameValPairs)
    Parameters
    Type Name Description
    System.String queryID

    ID of this quality query.

    IDictionary<System.String, System.String> nameValPairs

    The contents of this quality query.

    Properties

    | Improve this Doc View Source

    QueryID

    Gets the ID of this query. The ID allows to map the quality query with its judgements.

    Declaration
    public virtual string QueryID { get; }
    Property Value
    Type Description
    System.String

    Methods

    | Improve this Doc View Source

    CompareTo(QualityQuery)

    For a nicer sort of input queries before running them. Try first as ints, fall back to string if not int.

    Declaration
    public virtual int CompareTo(QualityQuery other)
    Parameters
    Type Name Description
    QualityQuery other
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    GetNames()

    Return all the names of name-value-pairs in this QualityQuery.

    Declaration
    public virtual string[] GetNames()
    Returns
    Type Description
    System.String[]
    | Improve this Doc View Source

    GetValue(String)

    Return the value of a certain name-value pair.

    Declaration
    public virtual string GetValue(string name)
    Parameters
    Type Name Description
    System.String name

    The name whose value should be returned.

    Returns
    Type Description
    System.String
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)