lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dna...@apache.org
Subject svn commit: r220165 - /lucene/java/trunk/src/java/org/apache/lucene/queryParser/MultiFieldQueryParser.java
Date Thu, 21 Jul 2005 18:44:20 GMT
Author: dnaber
Date: Thu Jul 21 11:44:19 2005
New Revision: 220165

URL: http://svn.apache.org/viewcvs?rev=220165&view=rev
Log:
stop using the deprecated parse() method

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/queryParser/MultiFieldQueryParser.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/queryParser/MultiFieldQueryParser.java
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/src/java/org/apache/lucene/queryParser/MultiFieldQueryParser.java?rev=220165&r1=220164&r2=220165&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/queryParser/MultiFieldQueryParser.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/queryParser/MultiFieldQueryParser.java Thu
Jul 21 11:44:19 2005
@@ -245,7 +245,8 @@
         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 @@
         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 @@
         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)
             {



Mime
View raw message