stop using the deprecated parse() method

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@220165 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Daniel Naber 2005-07-21 18:44:19 +00:00
parent eaa580b853
commit c9e584847b
1 changed files with 6 additions and 3 deletions

View File

@ -245,7 +245,8 @@ public class MultiFieldQueryParser extends QueryParser
BooleanQuery bQuery = new BooleanQuery();
for (int i = 0; i < fields.length; i++)
{
Query q = parse(queries[i], fields[i], analyzer);
QueryParser qp = new QueryParser(fields[i], analyzer);
Query q = qp.parse(queries[i]);
bQuery.add(q, BooleanClause.Occur.SHOULD);
}
return bQuery;
@ -291,7 +292,8 @@ public class MultiFieldQueryParser extends QueryParser
BooleanQuery bQuery = new BooleanQuery();
for (int i = 0; i < fields.length; i++)
{
Query q = parse(query, fields[i], analyzer);
QueryParser qp = new QueryParser(fields[i], analyzer);
Query q = qp.parse(query);
int flag = flags[i];
switch (flag)
{
@ -349,7 +351,8 @@ public class MultiFieldQueryParser extends QueryParser
BooleanQuery bQuery = new BooleanQuery();
for (int i = 0; i < fields.length; i++)
{
Query q = parse(queries[i], fields[i], analyzer);
QueryParser qp = new QueryParser(fields[i], analyzer);
Query q = qp.parse(queries[i]);
int flag = flags[i];
switch (flag)
{