Skip to content

Commit

Permalink
Update TermsQueryBuilderTests to include TermQuery (#13517) (#13519)
Browse files Browse the repository at this point in the history
(cherry picked from commit 37df569)

Signed-off-by: Harsha Vamsi Kalluri <[email protected]>
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>
  • Loading branch information
1 parent bc6f683 commit 5627e50
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 5627e50

Please sign in to comment.