mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
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 {
|
} else {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (terms.size() > maxExpansions) {
|
if (terms.size() >= maxExpansions) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} while (enumerator.next());
|
} while (enumerator.next());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user