mirror of https://github.com/apache/lucene.git
LUCENE-2458: keep Solr's default QP behavior wrt compound words and phrases
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@978879 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2fe80c49e6
commit
b62cff9fc0
|
@ -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(schema.getSolrConfig().getLuceneVersion("luceneMatchVersion", Version.LUCENE_24), defaultField == null ? schema.getDefaultSearchFieldName() : defaultField, schema.getQueryAnalyzer());
|
super(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(parser.getReq().getSchema().getSolrConfig().getLuceneVersion("luceneMatchVersion", Version.LUCENE_24), defaultField, analyzer);
|
super(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;
|
||||||
|
|
Loading…
Reference in New Issue