LUCENE-2458: revert r978879

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@978891 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2010-07-24 16:22:51 +00:00
parent b62cff9fc0
commit 249c678054
1 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ public class SolrQueryParser extends QueryParser {
* @see IndexSchema#getDefaultSearchFieldName() * @see IndexSchema#getDefaultSearchFieldName()
*/ */
public SolrQueryParser(IndexSchema schema, String defaultField) { 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.schema = schema;
this.parser = null; this.parser = null;
this.defaultField = defaultField; this.defaultField = defaultField;
@ -87,7 +87,7 @@ public class SolrQueryParser extends QueryParser {
} }
public SolrQueryParser(QParser parser, String defaultField, Analyzer analyzer) { public SolrQueryParser(QParser parser, String defaultField, Analyzer analyzer) {
super(Version.LUCENE_24, defaultField, analyzer); super(parser.getReq().getSchema().getSolrConfig().getLuceneVersion("luceneMatchVersion", Version.LUCENE_24), defaultField, analyzer);
this.schema = parser.getReq().getSchema(); this.schema = parser.getReq().getSchema();
this.parser = parser; this.parser = parser;
this.defaultField = defaultField; this.defaultField = defaultField;