mirror of https://github.com/apache/lucene.git
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:
parent
539eaa3fd7
commit
9a31a8828f
|
@ -69,11 +69,11 @@ public class PerfRunData {
|
||||||
"org.apache.lucene.analysis.standard.StandardAnalyzer")).newInstance();
|
"org.apache.lucene.analysis.standard.StandardAnalyzer")).newInstance();
|
||||||
// doc maker
|
// doc maker
|
||||||
docMaker = (DocMaker) Class.forName(config.get("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);
|
docMaker.setConfig(config);
|
||||||
// query makers
|
// query makers
|
||||||
// we use separate (identical) instances for each "read" task type, so each can iterate the quries separately.
|
// 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 = (QueryMaker) qmkrClass.newInstance();
|
||||||
searchQueryMaker.setConfig(config);
|
searchQueryMaker.setConfig(config);
|
||||||
searchTravQueryMaker = (QueryMaker) qmkrClass.newInstance();
|
searchTravQueryMaker = (QueryMaker) qmkrClass.newInstance();
|
||||||
|
|
|
@ -109,7 +109,7 @@ public class ReutersQueryMaker implements QueryMaker {
|
||||||
private void prepareQueries() throws Exception {
|
private void prepareQueries() throws Exception {
|
||||||
// analyzer (default is standard analyzer)
|
// analyzer (default is standard analyzer)
|
||||||
Analyzer anlzr= (Analyzer) Class.forName(config.get("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);
|
List queryList = new ArrayList(20);
|
||||||
queryList.addAll(Arrays.asList(STANDARD_QUERIES));
|
queryList.addAll(Arrays.asList(STANDARD_QUERIES));
|
||||||
|
|
|
@ -48,7 +48,7 @@ public class SimpleQueryMaker implements QueryMaker {
|
||||||
protected Query[] prepareQueries() throws Exception {
|
protected Query[] prepareQueries() throws Exception {
|
||||||
// analyzer (default is standard analyzer)
|
// analyzer (default is standard analyzer)
|
||||||
Analyzer anlzr= (Analyzer) Class.forName(config.get("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);
|
QueryParser qp = new QueryParser("body",anlzr);
|
||||||
ArrayList qq = new ArrayList();
|
ArrayList qq = new ArrayList();
|
||||||
|
|
Loading…
Reference in New Issue