org.apache.lucene.benchmark.byTask.feeds

Class FileBasedQueryMaker

public class FileBasedQueryMaker extends AbstractQueryMaker implements QueryMaker

Create queries from a FileReader. One per line, pass them through the QueryParser. Lines beginning with # are treated as comments File can be specified as a absolute, relative or resource. Two properties can be set: file.query.maker.file=<Full path to file containing queries>
file.query.maker.default.field=<Name of default field - Default value is "body"> Example: file.query.maker.file=c:/myqueries.txt file.query.maker.default.field=body
Method Summary
protected Query[]prepareQueries()

Method Detail

prepareQueries

protected Query[] prepareQueries()
Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.