add version support for qp from solrconfig

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/branches/solr@923544 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2010-03-16 01:53:33 +00:00
parent 742a8cd50f
commit 5f79081c9c
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ public class SolrQueryParser extends QueryParser {
* @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;