mirror of https://github.com/apache/lucene.git
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:
parent
742a8cd50f
commit
5f79081c9c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue