Skip to content

Commit 444d148

Browse files
authored
Adjust generated query in MultiMatchQueryBuilderTests (#128436)
1 parent 7e269a9 commit 444d148

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

muted-tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -477,9 +477,6 @@ tests:
477477
- class: org.elasticsearch.xpack.esql.qa.single_node.PushQueriesIT
478478
method: testEqualityAndOther {semantic_text}
479479
issue: https://github.com/elastic/elasticsearch/issues/128414
480-
- class: org.elasticsearch.index.query.MultiMatchQueryBuilderTests
481-
method: testToQuery
482-
issue: https://github.com/elastic/elasticsearch/issues/128416
483480
- class: org.elasticsearch.xpack.ml.integration.InferenceIngestIT
484481
method: testPipelineIngestWithModelAliases
485482
issue: https://github.com/elastic/elasticsearch/issues/128417

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import org.apache.lucene.search.DisjunctionMaxQuery;
1717
import org.apache.lucene.search.FuzzyQuery;
1818
import org.apache.lucene.search.IndexOrDocValuesQuery;
19+
import org.apache.lucene.search.IndexSortSortedNumericDocValuesRangeQuery;
1920
import org.apache.lucene.search.MatchAllDocsQuery;
2021
import org.apache.lucene.search.MatchNoDocsQuery;
2122
import org.apache.lucene.search.PhraseQuery;
@@ -170,7 +171,8 @@ protected void doAssertLuceneQuery(MultiMatchQueryBuilder queryBuilder, Query qu
170171
instanceOf(PhraseQuery.class),
171172
instanceOf(PointRangeQuery.class),
172173
instanceOf(IndexOrDocValuesQuery.class),
173-
instanceOf(PrefixQuery.class)
174+
instanceOf(PrefixQuery.class),
175+
instanceOf(IndexSortSortedNumericDocValuesRangeQuery.class)
174176
)
175177
)
176178
);

0 commit comments

Comments
 (0)