fix the maxExpansion of a prefix query
This commit is contained in:
parent
8f6de29580
commit
bf071222ed
|
@ -162,7 +162,7 @@ public class MultiPhrasePrefixQuery extends Query {
|
|||
} else {
|
||||
break;
|
||||
}
|
||||
if (terms.size() > maxExpansions) {
|
||||
if (terms.size() >= maxExpansions) {
|
||||
break;
|
||||
}
|
||||
} while (enumerator.next());
|
||||
|
|
Loading…
Reference in New Issue