set default phraseSlop on MultiPhraseQuery in getFieldQuery: LUCENE-483

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@367110 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2006-01-08 22:35:52 +00:00
parent ce3d7a331e
commit bc4581f6d9
2 changed files with 2 additions and 0 deletions

View File

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

View File

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