Skip to content

Commit

Permalink
Merge pull request #1598 from rbayet/fix_1581_admin_page_size_for_fil…
Browse files Browse the repository at this point in the history
…terable_attr_list

Fixes #1581 Explicit fulltext collection page size
  • Loading branch information
romainruaud authored Oct 30, 2019
2 parents 7bd9569 + 0732e43 commit bc040f3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ private function getAttributes($category)
/** @var \Smile\ElasticsuiteCatalog\Model\ResourceModel\Product\Fulltext\Collection $fulltextCollection */
$fulltextCollection = $this->fulltextCollectionFactory->create();
$fulltextCollection->setStoreId($storeId)
->setPageSize(1)
->addFieldToFilter('category_ids', $this->getCategoryFilterParam($category));

$attributeSetIds = array_keys($fulltextCollection->getFacetedData('attribute_set_id'));
Expand Down

0 comments on commit bc040f3

Please sign in to comment.