diff --git a/src/QueryBuilder/HasAttributesQueryBuilder.php b/src/QueryBuilder/HasAttributesQueryBuilder.php index 179d739b..de2de4e3 100644 --- a/src/QueryBuilder/HasAttributesQueryBuilder.php +++ b/src/QueryBuilder/HasAttributesQueryBuilder.php @@ -24,7 +24,7 @@ public function buildQuery(array $data): ?AbstractQuery foreach ((array) $data['attribute_values'] as $attributeValue) { $termQuery = new Term(); - $termQuery->setTerm($data['attribute'], $attributeValue); + $termQuery->setTerm($data['attribute'] . '.keyword', $attributeValue); $attributeQuery->addShould($termQuery); }