Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix SearchQueryIT to not depend on percentage (opensearch-project#11233)
The CommonTermsQuery tests in SearchQueryIT had one case that depended on the default cutoff frequency percentage. A recent change for concurrent search increased the number of deleted documents that could be indexed in the "indexRandom" helper method, and it turns out the cutoff percentage is calculated from a max docs value that includes deleted docs. This change replaces the default percentage with an absolute value (number of documents that must match) so it is no longer susceptible to behavior change due to number of deleted documents. Signed-off-by: Andrew Ross <[email protected]>
- Loading branch information