org.apache.lucene.benchmark.byTask.feeds

Class ReutersQueryMaker

Implemented Interfaces:
QueryMaker

public class ReutersQueryMaker
extends Object
implements QueryMaker

A QueryMaker that makes queries devised manually (by Grant Ingersoll) for searching in the Reuters collection.

Method Summary

Query
makeQuery()
Create the next query
Query
makeQuery(int size)
Create the next query, of the given size.
String
printQueries()
Print the queries
void
resetInputs()
Reset inputs so that the test run would behave, input wise, as if it just started.
void
setConfig(Config config)
Set the properties

Method Details

makeQuery

public Query makeQuery()
            throws Exception
Create the next query
Specified by:
makeQuery in interface QueryMaker

makeQuery

public Query makeQuery(int size)
            throws Exception
Create the next query, of the given size.
Specified by:
makeQuery in interface QueryMaker
Parameters:
size - the size of the query - number of terms, etc.

printQueries

public String printQueries()
Print the queries
Specified by:
printQueries in interface QueryMaker

resetInputs

public void resetInputs()
Reset inputs so that the test run would behave, input wise, as if it just started.
Specified by:
resetInputs in interface QueryMaker

setConfig

public void setConfig(Config config)
            throws Exception
Set the properties
Specified by:
setConfig in interface QueryMaker

Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.