LUCENE-2458: implement Uwe's suggestion for restoring Solr's default behavior

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@978898 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2010-07-24 16:49:18 +00:00
parent 249c678054
commit 68ce463907
1 changed files with 2 additions and 0 deletions

View File

@ -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();
}