allow leading wildcard in contrib/benchmark's FileBasedQueryMaker

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@991497 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2010-09-01 10:34:42 +00:00
parent 5fe8094027
commit 72cb709bd6
1 changed files with 1 additions and 0 deletions

View File

@ -51,6 +51,7 @@ public class FileBasedQueryMaker extends AbstractQueryMaker implements QueryMake
"org.apache.lucene.analysis.standard.StandardAnalyzer")); "org.apache.lucene.analysis.standard.StandardAnalyzer"));
String defaultField = config.get("file.query.maker.default.field", DocMaker.BODY_FIELD); String defaultField = config.get("file.query.maker.default.field", DocMaker.BODY_FIELD);
QueryParser qp = new QueryParser(Version.LUCENE_CURRENT, defaultField, anlzr); QueryParser qp = new QueryParser(Version.LUCENE_CURRENT, defaultField, anlzr);
qp.setAllowLeadingWildcard(true);
List<Query> qq = new ArrayList<Query>(); List<Query> qq = new ArrayList<Query>();
String fileName = config.get("file.query.maker.file", null); String fileName = config.get("file.query.maker.file", null);