lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markrmil...@apache.org
Subject svn commit: r923544 - /lucene/solr/branches/solr/src/java/org/apache/solr/search/SolrQueryParser.java
Date Tue, 16 Mar 2010 01:53:34 GMT
Author: markrmiller
Date: Tue Mar 16 01:53:33 2010
New Revision: 923544

URL: http://svn.apache.org/viewvc?rev=923544&view=rev
Log:
add version support for qp from solrconfig

Modified:
    lucene/solr/branches/solr/src/java/org/apache/solr/search/SolrQueryParser.java

Modified: lucene/solr/branches/solr/src/java/org/apache/solr/search/SolrQueryParser.java
URL: http://svn.apache.org/viewvc/lucene/solr/branches/solr/src/java/org/apache/solr/search/SolrQueryParser.java?rev=923544&r1=923543&r2=923544&view=diff
==============================================================================
--- lucene/solr/branches/solr/src/java/org/apache/solr/search/SolrQueryParser.java (original)
+++ lucene/solr/branches/solr/src/java/org/apache/solr/search/SolrQueryParser.java Tue Mar
16 01:53:33 2010
@@ -75,7 +75,7 @@ public class SolrQueryParser extends Que
    * @see IndexSchema#getDefaultSearchFieldName()
    */
   public SolrQueryParser(IndexSchema schema, String defaultField) {
-    super(Version.LUCENE_24, defaultField == null ? schema.getDefaultSearchFieldName() :
defaultField, schema.getQueryAnalyzer());
+    super(schema.getSolrConfig().getLuceneVersion("luceneMatchVersion", Version.LUCENE_24),
defaultField == null ? schema.getDefaultSearchFieldName() : defaultField, schema.getQueryAnalyzer());
     this.schema = schema;
     this.parser  = null;
     this.defaultField = defaultField;



Mime
View raw message