Fork me on GitHub
  • API

    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 Lucene.Net.Search.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
    object
    QualityQuery
    Implements
    IComparable<QualityQuery>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Benchmarks.Quality
    Assembly: Lucene.Net.Benchmark.dll
    Syntax
    public class QualityQuery : IComparable<QualityQuery>

    Constructors

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

    ID of this quality query.

    IDictionary<string, string> nameValPairs

    The contents of this quality query.

    Properties

    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
    string

    Methods

    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
    int

    GetNames()

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

    Declaration
    public virtual string[] GetNames()
    Returns
    Type Description
    string[]

    GetValue(string)

    Return the value of a certain name-value pair.

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

    The name whose value should be returned.

    Returns
    Type Description
    string

    Implements

    IComparable<T>
    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.