mirror of https://github.com/apache/lucene.git
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:
parent
b62cff9fc0
commit
249c678054
|
@ -73,7 +73,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;
|
||||
|
@ -87,7 +87,7 @@ public class SolrQueryParser extends QueryParser {
|
|||
}
|
||||
|
||||
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.parser = parser;
|
||||
this.defaultField = defaultField;
|
||||
|
|
Loading…
Reference in New Issue