Skip to content

Commit

Permalink
Update TermsQueryBuilderTests to include TermQuery (opensearch-projec…
Browse files Browse the repository at this point in the history
…t#13517)

Signed-off-by: Harsha Vamsi Kalluri <[email protected]>
  • Loading branch information
harshavamsi authored May 2, 2024
1 parent 79957eb commit 37df569
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 37df569

Please sign in to comment.