diff --git a/src/java/org/apache/lucene/queryParser/QueryParser.java b/src/java/org/apache/lucene/queryParser/QueryParser.java index f3119a2497a..687b95aa740 100644 --- a/src/java/org/apache/lucene/queryParser/QueryParser.java +++ b/src/java/org/apache/lucene/queryParser/QueryParser.java @@ -414,6 +414,7 @@ public class QueryParser implements QueryParserConstants { else { // phrase query: MultiPhraseQuery mpq = new MultiPhraseQuery(); + mpq.setSlop(phraseSlop); List multiTerms = new ArrayList(); for (int i = 0; i < v.size(); i++) { t = (org.apache.lucene.analysis.Token) v.elementAt(i); diff --git a/src/java/org/apache/lucene/queryParser/QueryParser.jj b/src/java/org/apache/lucene/queryParser/QueryParser.jj index 3d8fd29cbb1..92c6e1e66e0 100644 --- a/src/java/org/apache/lucene/queryParser/QueryParser.jj +++ b/src/java/org/apache/lucene/queryParser/QueryParser.jj @@ -437,6 +437,7 @@ public class QueryParser { else { // phrase query: MultiPhraseQuery mpq = new MultiPhraseQuery(); + mpq.setSlop(phraseSlop); List multiTerms = new ArrayList(); for (int i = 0; i < v.size(); i++) { t = (org.apache.lucene.analysis.Token) v.elementAt(i);