fix the maxExpansion of a prefix query

This commit is contained in:
Nicolas Lalevée 2011-07-19 12:20:36 +02:00 committed by kimchy
parent 8f6de29580
commit bf071222ed
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ public class MultiPhrasePrefixQuery extends Query {
} else {
break;
}
if (terms.size() > maxExpansions) {
if (terms.size() >= maxExpansions) {
break;
}
} while (enumerator.next());