mirror of https://github.com/apache/lucene.git
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:
parent
5fe8094027
commit
72cb709bd6
|
@ -51,6 +51,7 @@ public class FileBasedQueryMaker extends AbstractQueryMaker implements QueryMake
|
|||
"org.apache.lucene.analysis.standard.StandardAnalyzer"));
|
||||
String defaultField = config.get("file.query.maker.default.field", DocMaker.BODY_FIELD);
|
||||
QueryParser qp = new QueryParser(Version.LUCENE_CURRENT, defaultField, anlzr);
|
||||
qp.setAllowLeadingWildcard(true);
|
||||
|
||||
List<Query> qq = new ArrayList<Query>();
|
||||
String fileName = config.get("file.query.maker.file", null);
|
||||
|
|
Loading…
Reference in New Issue