diff --git a/solr/src/java/org/apache/solr/search/SolrQueryParser.java b/solr/src/java/org/apache/solr/search/SolrQueryParser.java index 9882e220dca..3048893bb4a 100644 --- a/solr/src/java/org/apache/solr/search/SolrQueryParser.java +++ b/solr/src/java/org/apache/solr/search/SolrQueryParser.java @@ -79,6 +79,7 @@ public class SolrQueryParser extends QueryParser { this.defaultField = defaultField; setLowercaseExpandedTerms(false); setEnablePositionIncrements(true); + setAutoGeneratePhraseQueries(true); checkAllowLeadingWildcards(); } @@ -93,6 +94,7 @@ public class SolrQueryParser extends QueryParser { this.defaultField = defaultField; setLowercaseExpandedTerms(false); setEnablePositionIncrements(true); + setAutoGeneratePhraseQueries(true); checkAllowLeadingWildcards(); }