Fixed bug which ignored user's choice of QueryParser. Thanks to Terry Steichen for spotting it.

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@385762 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Harwood 2006-03-14 08:49:43 +00:00
parent 38c6fbed8b
commit 9078b805d3
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ public class CoreParser implements QueryBuilder
queryFactory = new QueryBuilderFactory();
queryFactory.addBuilder("TermQuery",new TermQueryBuilder());
queryFactory.addBuilder("BooleanQuery",new BooleanQueryBuilder(queryFactory));
queryFactory.addBuilder("UserQuery",new UserInputQueryBuilder(new QueryParser("contents", analyzer)));
queryFactory.addBuilder("UserQuery",new UserInputQueryBuilder(parser));
queryFactory.addBuilder("FilteredQuery",new FilteredQueryBuilder(filterFactory,queryFactory));
queryFactory.addBuilder("ConstantScoreQuery",new ConstantScoreQueryBuilder(filterFactory));