lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dna...@apache.org
Subject svn commit: r202282 - /lucene/java/trunk/src/java/org/apache/lucene/queryParser/MultiFieldQueryParser.java
Date Tue, 28 Jun 2005 21:18:53 GMT
Author: dnaber
Date: Tue Jun 28 14:18:51 2005
New Revision: 202282

URL: http://svn.apache.org/viewcvs?rev=202282&view=rev
Log:
small code simplification suggested by John Wang; added deprecated tag to javadoc

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=202282&r1=202281&r2=202282&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 Tue
Jun 28 14:18:51 2005
@@ -70,16 +70,12 @@
     return super.getFieldQuery(field, queryText);
   }
   
+  /**
+   * @deprecated use {@link #getFieldQuery(String, String)}
+   */
   protected Query getFieldQuery(String field, Analyzer analyzer, String queryText)
       throws ParseException {
-    if (field == null) {
-      Vector clauses = new Vector();
-      for (int i = 0; i < fields.length; i++)
-        clauses.add(new BooleanClause(super.getFieldQuery(fields[i], queryText),
-            BooleanClause.Occur.SHOULD));
-      return getBooleanQuery(clauses, true);
-    }
-    return super.getFieldQuery(field, queryText);
+    return getFieldQuery(field, queryText);
   }
   
   /**



Mime
View raw message