lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r829209 - /lucene/java/branches/lucene_2_9/contrib/misc/src/java/org/apache/lucene/queryParser/analyzing/AnalyzingQueryParser.java
Date Fri, 23 Oct 2009 20:29:34 GMT
Author: mikemccand
Date: Fri Oct 23 20:29:33 2009
New Revision: 829209

URL: http://svn.apache.org/viewvc?rev=829209&view=rev
Log:
LUCENE-2002: also fix AnalyzingQueryParser to take Version

Modified:
    lucene/java/branches/lucene_2_9/contrib/misc/src/java/org/apache/lucene/queryParser/analyzing/AnalyzingQueryParser.java

Modified: lucene/java/branches/lucene_2_9/contrib/misc/src/java/org/apache/lucene/queryParser/analyzing/AnalyzingQueryParser.java
URL: http://svn.apache.org/viewvc/lucene/java/branches/lucene_2_9/contrib/misc/src/java/org/apache/lucene/queryParser/analyzing/AnalyzingQueryParser.java?rev=829209&r1=829208&r2=829209&view=diff
==============================================================================
--- lucene/java/branches/lucene_2_9/contrib/misc/src/java/org/apache/lucene/queryParser/analyzing/AnalyzingQueryParser.java
(original)
+++ lucene/java/branches/lucene_2_9/contrib/misc/src/java/org/apache/lucene/queryParser/analyzing/AnalyzingQueryParser.java
Fri Oct 23 20:29:33 2009
@@ -28,6 +28,7 @@
 import org.apache.lucene.analysis.tokenattributes.TermAttribute;
 import org.apache.lucene.queryParser.ParseException;
 import org.apache.lucene.search.Query;
+import org.apache.lucene.util.Version;
 
 /**
  * Overrides Lucene's default QueryParser so that Fuzzy-, Prefix-, Range-, and WildcardQuerys
@@ -48,12 +49,23 @@
    * Constructs a query parser.
    * @param field    the default field for query terms.
    * @param analyzer used to find terms in the query text.
+   * @deprecated Use {@link #AnalyzingQueryParser(Version,
+   * String, Analyzer)} instead
    */
   public AnalyzingQueryParser(String field, Analyzer analyzer) {
     super(field, analyzer);
   }
 
   /**
+   * Constructs a query parser.
+   * @param field    the default field for query terms.
+   * @param analyzer used to find terms in the query text.
+   */
+  public AnalyzingQueryParser(Version matchVersion, String field, Analyzer analyzer) {
+    super(machVersion, field, analyzer);
+  }
+
+  /**
    * Called when parser
    * parses an input term token that contains one or more wildcard
    * characters (like <code>*</code>), but is not a prefix term token (one



Mime
View raw message