Skip to content

Commit

Permalink
Merge remote-tracking branch 'arcticfoxes/MC-15305' into pr
Browse files Browse the repository at this point in the history
  • Loading branch information
Joan He committed Mar 8, 2019
2 parents 5fbfd81 + dc91429 commit 95e7c38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,12 @@ public function getFields(array $context = []): array

$groups = $this->groupRepository->getList($searchCriteria)->getItems();
$priceAttribute = $this->attributeAdapterProvider->getByAttributeCode('price');
$ctx = isset($context['websiteId']) ? ['websiteId' => $context['websiteId']] : [];
foreach ($groups as $group) {
$ctx['customerGroupId'] = $group->getId();
$groupPriceKey = $this->fieldNameResolver->getFieldName(
$priceAttribute,
['customerGroupId' => $group->getId(), 'websiteId' => $context['websiteId']]
$ctx
);
$allAttributes[$groupPriceKey] = [
'type' => $this->fieldTypeConverter->convert(FieldTypeConverterInterface::INTERNAL_DATA_TYPE_FLOAT),
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Elasticsearch6/etc/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
<type name="Magento\Search\Model\Search\PageSizeProvider">
<arguments>
<argument name="pageSizeBySearchEngine" xsi:type="array">
<item name="elasticsearch6" xsi:type="number">2147483647</item>
<item name="elasticsearch6" xsi:type="number">10000</item>
</argument>
</arguments>
</type>
Expand Down

0 comments on commit 95e7c38

Please sign in to comment.