Skip to content
This repository has been archived by the owner on Jun 29, 2021. It is now read-only.

Commit

Permalink
MM-1233: termQuery for IN operator.
Browse files Browse the repository at this point in the history
  • Loading branch information
jakub committed Feb 15, 2021
1 parent 8386549 commit a17e2d6
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,11 @@ public static QueryBuilder createQueryBuilderForSimpleWhere(List<FilterItem> whe
}
} else if (OperatorType.IN.equals(operator)) {
final List<?> operands = CollectionUtils.toList(operand);
itemQueryBuilder = QueryBuilders.termsQuery(fieldName, operands);
if (column.getType().isLiteral()) {
itemQueryBuilder = QueryBuilders.termQuery(fieldName, operand);
} else {
itemQueryBuilder = QueryBuilders.termsQuery(fieldName, operands);
}
} else {
// not (yet) support operator types
return null;
Expand Down

0 comments on commit a17e2d6

Please sign in to comment.