Skip to content

Commit 0d1bb9b

Browse files
Fix flaky multimatchquerybuildertests (#18013) (#18035)
(cherry picked from commit 17eeaa2) Signed-off-by: Harsha Vamsi Kalluri <harshavamsi096@gmail.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 7f20eab commit 0d1bb9b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

server/src/test/java/org/opensearch/index/query/MultiMatchQueryBuilderTests.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
import org.opensearch.index.query.MultiMatchQueryBuilder.Type;
5656
import org.opensearch.index.search.MatchQuery;
5757
import org.opensearch.lucene.queries.ExtendedCommonTermsQuery;
58+
import org.opensearch.search.approximate.ApproximateScoreQuery;
5859
import org.opensearch.test.AbstractQueryTestCase;
5960

6061
import java.io.IOException;
@@ -198,7 +199,8 @@ protected void doAssertLuceneQuery(MultiMatchQueryBuilder queryBuilder, Query qu
198199
instanceOf(PhraseQuery.class),
199200
instanceOf(PointRangeQuery.class),
200201
instanceOf(IndexOrDocValuesQuery.class),
201-
instanceOf(PrefixQuery.class)
202+
instanceOf(PrefixQuery.class),
203+
instanceOf(ApproximateScoreQuery.class)
202204
)
203205
)
204206
);

0 commit comments

Comments
 (0)