Class FileBasedQueryMaker
Create queries from a FileStream. One per line, pass them through the QueryParser. Lines beginning with # are treated as comments.
Implements
Inherited Members
Namespace: Lucene.Net.Benchmarks.ByTask.Feeds
Assembly: Lucene.Net.Benchmark.dll
Syntax
public class FileBasedQueryMaker : AbstractQueryMaker, IQueryMaker
Remarks
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">
file.query.maker.file=c:/myqueries.txt
file.query.maker.default.field=body
Methods
PrepareQueries()
Create queries from a FileStream. One per line, pass them through the QueryParser. Lines beginning with # are treated as comments.
Declaration
protected override Query[] PrepareQueries()
Returns
Type | Description |
---|---|
Query[] |
Overrides
Remarks
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">
file.query.maker.file=c:/myqueries.txt
file.query.maker.default.field=body