org.apache.lucene.benchmark.quality
public class QualityQuery extends Object implements Comparable
The ID allows to map the quality query with its judgements.
The name-value pairs are used by a
QualityQueryParser
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.
Constructor and Description |
---|
QualityQuery(String queryID,
Map nameValPairs)
Create a QualityQuery with given ID and name-value pairs.
|
public String[] getNames()
public String getValue(String name)
name
- the name whose value should be returned.public String getQueryID()
public int compareTo(Object o)
compareTo
in interface Comparable
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.