Skip to content

Commit

Permalink
Merge pull request #145 from leszczuu/fix/JJ-98
Browse files Browse the repository at this point in the history
Fix for searching attributes like '%100_wool'
  • Loading branch information
patrick477 authored Nov 20, 2020
2 parents 9652b9d + ae4b788 commit 3f51898
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/QueryBuilder/HasAttributesQueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 3f51898

Please sign in to comment.