Skip to content

Commit

Permalink
Update AttributeAggregation.php
Browse files Browse the repository at this point in the history
  • Loading branch information
wouter-toppy authored Dec 14, 2018
1 parent b179a4e commit f7cabdb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function prepareCollection(ProductCollection $collection)
foreach ($this->attributeConfig->getAutocompleteAttributeCollection() as $attribute) {
$facetSize = $this->autocompleteHelper->getMaxSize(DataProvider::AUTOCOMPLETE_TYPE);
$filterField = $this->attributeConfig->getFilterField($attribute);
$collection->addFacet(['name' => $filterField, BucketInterface::TYPE_TERM, 'size' => $facetSize]);
$collection->addFacet(['name' => $filterField, 'type' => BucketInterface::TYPE_TERM, 'size' => $facetSize]);
}

return $collection;
Expand Down

0 comments on commit f7cabdb

Please sign in to comment.