correct names of dynamically loaded classes (analyzers, doc/query makers)

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@519567 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Doron Cohen 2007-03-18 06:51:06 +00:00
parent 539eaa3fd7
commit 9a31a8828f
3 changed files with 4 additions and 4 deletions

View File

@ -69,11 +69,11 @@ public class PerfRunData {
"org.apache.lucene.analysis.standard.StandardAnalyzer")).newInstance();
// doc maker
docMaker = (DocMaker) Class.forName(config.get("doc.maker",
"org.apache.lucene.benchmark.byTask.utils.SimpleDocMaker")).newInstance();
"org.apache.lucene.benchmark.byTask.feeds.SimpleDocMaker")).newInstance();
docMaker.setConfig(config);
// query makers
// we use separate (identical) instances for each "read" task type, so each can iterate the quries separately.
Class qmkrClass = Class.forName(config.get("query.maker","org.apache.lucene.benchmark.byTask.utils.SimpleQueryMaker"));
Class qmkrClass = Class.forName(config.get("query.maker","org.apache.lucene.benchmark.byTask.feeds.SimpleQueryMaker"));
searchQueryMaker = (QueryMaker) qmkrClass.newInstance();
searchQueryMaker.setConfig(config);
searchTravQueryMaker = (QueryMaker) qmkrClass.newInstance();

View File

@ -109,7 +109,7 @@ public class ReutersQueryMaker implements QueryMaker {
private void prepareQueries() throws Exception {
// analyzer (default is standard analyzer)
Analyzer anlzr= (Analyzer) Class.forName(config.get("analyzer",
"org.apache.lucene.analysis.StandardAnalyzer")).newInstance();
"org.apache.lucene.analysis.standard.StandardAnalyzer")).newInstance();
List queryList = new ArrayList(20);
queryList.addAll(Arrays.asList(STANDARD_QUERIES));

View File

@ -48,7 +48,7 @@ public class SimpleQueryMaker implements QueryMaker {
protected Query[] prepareQueries() throws Exception {
// analyzer (default is standard analyzer)
Analyzer anlzr= (Analyzer) Class.forName(config.get("analyzer",
"org.apache.lucene.analysis.StandardAnalyzer")).newInstance();
"org.apache.lucene.analysis.standard.StandardAnalyzer")).newInstance();
QueryParser qp = new QueryParser("body",anlzr);
ArrayList qq = new ArrayList();