Skip to content

Commit

Permalink
Adding the mustCondition for all subFilter (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sahil-tarento authored Feb 19, 2024
1 parent 5f63468 commit c0be98f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ private static QueryBuilder getPostFilterQuery(Map<String, Object> postFilter) {
nestedBoolQuery.must(QueryBuilders.termQuery(filters.getKey(), value));
}
} else if (filters.getValue() instanceof String) {
nestedBoolQuery.should(QueryBuilders.termQuery(filters.getKey(), ((String) filters.getValue()).toLowerCase()));
nestedBoolQuery.must(QueryBuilders.termQuery(filters.getKey(), ((String) filters.getValue()).toLowerCase()));
}
}

Expand Down

0 comments on commit c0be98f

Please sign in to comment.