From bbd4e4e1455119a0bcedc7e44f480a4fd577fe66 Mon Sep 17 00:00:00 2001 From: Harsha Vamsi Kalluri Date: Wed, 15 Nov 2023 17:11:20 -0800 Subject: [PATCH] Fix tests Signed-off-by: Harsha Vamsi Kalluri --- .../java/org/opensearch/index/query/TermQueryBuilderTests.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/test/java/org/opensearch/index/query/TermQueryBuilderTests.java b/server/src/test/java/org/opensearch/index/query/TermQueryBuilderTests.java index 3ac9bce840a20..b0ee72200f2c7 100644 --- a/server/src/test/java/org/opensearch/index/query/TermQueryBuilderTests.java +++ b/server/src/test/java/org/opensearch/index/query/TermQueryBuilderTests.java @@ -36,6 +36,7 @@ import org.apache.lucene.index.Term; import org.apache.lucene.search.AutomatonQuery; +import org.apache.lucene.search.IndexOrDocValuesQuery; import org.apache.lucene.search.MatchNoDocsQuery; import org.apache.lucene.search.PointRangeQuery; import org.apache.lucene.search.Query; @@ -111,7 +112,7 @@ protected void doAssertLuceneQuery(TermQueryBuilder queryBuilder, Query query, Q query, either(instanceOf(TermQuery.class)).or(instanceOf(PointRangeQuery.class)) .or(instanceOf(MatchNoDocsQuery.class)) - .or(instanceOf(AutomatonQuery.class)) + .or(instanceOf(AutomatonQuery.class)).or(instanceOf(IndexOrDocValuesQuery.class)) ); MappedFieldType mapper = context.fieldMapper(queryBuilder.fieldName()); if (query instanceof TermQuery) {