org.apache.lucene.benchmark.quality.utils
Class SimpleQQParser
java.lang.Object
org.apache.lucene.benchmark.quality.utils.SimpleQQParser
- All Implemented Interfaces:
- QualityQueryParser
public class SimpleQQParser
- extends Object
- implements QualityQueryParser
Simplistic quality query parser. A Lucene query is created by passing
the value of the specified QualityQuery name-value pair into
a Lucene's QueryParser using StandardAnalyzer.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleQQParser
public SimpleQQParser(String qqName,
String indexField)
- Constructor of a simple qq parser.
- Parameters:
qqName
- name-value pair of quality query to use for creating the queryindexField
- corresponding index field
parse
public Query parse(QualityQuery qq)
throws ParseException
- Description copied from interface:
QualityQueryParser
- Parse a given QualityQuery into a Lucene query.
- Specified by:
parse
in interface QualityQueryParser
- Parameters:
qq
- the quality query to be parsed.
- Throws:
ParseException
- if parsing failed.
Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.