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
IQuality
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
Namespace: Lucene.Net.Benchmarks.Quality
Assembly: Lucene.Net.Benchmark.dll
Syntax
public class QualityQuery : IComparable<QualityQuery>
Constructors
| Improve this Doc View SourceQualityQuery(String, IDictionary<String, String>)
Create a Quality
Declaration
public QualityQuery(string queryID, IDictionary<string, string> nameValPairs)
Parameters
Type | Name | Description |
---|---|---|
System. |
queryID | ID of this quality query. |
IDictionary<System. |
nameValPairs | The contents of this quality query. |
Properties
| Improve this Doc View SourceQueryID
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. |
Methods
| Improve this Doc View SourceCompareTo(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 |
---|---|---|
Quality |
other |
Returns
Type | Description |
---|---|
System. |
GetNames()
Return all the names of name-value-pairs in this Quality
Declaration
public virtual string[] GetNames()
Returns
Type | Description |
---|---|
System. |
GetValue(String)
Return the value of a certain name-value pair.
Declaration
public virtual string GetValue(string name)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | The name whose value should be returned. |
Returns
Type | Description |
---|---|
System. |