mirror of https://github.com/apache/lucene.git
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:
parent
ce3d7a331e
commit
bc4581f6d9
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue