mirror of https://github.com/apache/lucene.git
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:
parent
eaa580b853
commit
c9e584847b
|
@ -245,7 +245,8 @@ public class MultiFieldQueryParser extends QueryParser
|
||||||
BooleanQuery bQuery = new BooleanQuery();
|
BooleanQuery bQuery = new BooleanQuery();
|
||||||
for (int i = 0; i < fields.length; i++)
|
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);
|
bQuery.add(q, BooleanClause.Occur.SHOULD);
|
||||||
}
|
}
|
||||||
return bQuery;
|
return bQuery;
|
||||||
|
@ -291,7 +292,8 @@ public class MultiFieldQueryParser extends QueryParser
|
||||||
BooleanQuery bQuery = new BooleanQuery();
|
BooleanQuery bQuery = new BooleanQuery();
|
||||||
for (int i = 0; i < fields.length; i++)
|
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];
|
int flag = flags[i];
|
||||||
switch (flag)
|
switch (flag)
|
||||||
{
|
{
|
||||||
|
@ -349,7 +351,8 @@ public class MultiFieldQueryParser extends QueryParser
|
||||||
BooleanQuery bQuery = new BooleanQuery();
|
BooleanQuery bQuery = new BooleanQuery();
|
||||||
for (int i = 0; i < fields.length; i++)
|
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];
|
int flag = flags[i];
|
||||||
switch (flag)
|
switch (flag)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue