Skip to content

Commit 17eeaa2

Browse files
authored
Fix flaky multimatchquerybuildertests (#18013)
Signed-off-by: Harsha Vamsi Kalluri <harshavamsi096@gmail.com>
1 parent 22f8f53 commit 17eeaa2

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)