Class FileBasedQueryMaker
- java.lang.Object
-
- org.apache.lucene.benchmark.byTask.feeds.AbstractQueryMaker
-
- org.apache.lucene.benchmark.byTask.feeds.FileBasedQueryMaker
-
- All Implemented Interfaces:
QueryMaker
public class FileBasedQueryMaker extends AbstractQueryMaker
Create queries from a FileReader. One per line, pass them through the QueryParser. Lines beginning with # are treated as commentsFile 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
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.benchmark.byTask.feeds.AbstractQueryMaker
config, qnum, queries
-
-
Constructor Summary
Constructors Constructor Description FileBasedQueryMaker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Query[]
prepareQueries()
-
Methods inherited from class org.apache.lucene.benchmark.byTask.feeds.AbstractQueryMaker
makeQuery, makeQuery, nextQnum, printQueries, resetInputs, setConfig
-
-
-
-
Method Detail
-
prepareQueries
protected Query[] prepareQueries() throws Exception
- Specified by:
prepareQueries
in classAbstractQueryMaker
- Throws:
Exception
-
-