diff --git a/commercetools/commercetools-sdk-java-api/src/integrationTest/java/commercetools/order/OrderQueryTests.java b/commercetools/commercetools-sdk-java-api/src/integrationTest/java/commercetools/order/OrderQueryTests.java index 45a8af34682..a296506a3ce 100644 --- a/commercetools/commercetools-sdk-java-api/src/integrationTest/java/commercetools/order/OrderQueryTests.java +++ b/commercetools/commercetools-sdk-java-api/src/integrationTest/java/commercetools/order/OrderQueryTests.java @@ -102,7 +102,9 @@ public void searchQueryBuilder() { .orders() .search() // .post("") - .post(r -> r.withQuery(q -> q.exists(e -> e.field("custom.deliveryDate").customType("StringType"))) + .post(r -> r + .withQuery(q -> q.exists( + e -> e.field("custom.deliveryDate").customType(OrderSearchCustomType.STRING_TYPE))) .withSort(b -> b.field("createdAt").order(OrderSearchSortOrder.DESC)) .limit(20)) .executeBlocking()