Skip to content

Commit

Permalink
Update TermsQueryBuilderTests to include TermQuery (#13517)
Browse files Browse the repository at this point in the history
Signed-off-by: Harsha Vamsi Kalluri <[email protected]>
(cherry picked from commit 37df569)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] committed May 2, 2024
1 parent bc6f683 commit f4f464b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
import org.apache.lucene.search.PointInSetQuery;
import org.apache.lucene.search.Query;
import org.apache.lucene.search.TermInSetQuery;
import org.apache.lucene.search.TermQuery;
import org.apache.lucene.util.BytesRef;
import org.opensearch.OpenSearchException;
import org.opensearch.action.get.GetRequest;
Expand Down Expand Up @@ -141,6 +142,7 @@ protected void doAssertLuceneQuery(TermsQueryBuilder queryBuilder, Query query,
.or(instanceOf(IndexOrDocValuesQuery.class))
.or(instanceOf(MatchAllDocsQuery.class))
.or(instanceOf(FieldExistsQuery.class))
.or(instanceOf(TermQuery.class))
);
if (query instanceof ConstantScoreQuery) {
assertThat(((ConstantScoreQuery) query).getQuery(), instanceOf(BooleanQuery.class));
Expand Down

0 comments on commit f4f464b

Please sign in to comment.