File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Elasticsearch/Model/Adapter/FieldMapper/Product/FieldProvider Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -123,10 +123,12 @@ public function getFields(array $context = []): array
123
123
124
124
$ groups = $ this ->groupRepository ->getList ($ searchCriteria )->getItems ();
125
125
$ priceAttribute = $ this ->attributeAdapterProvider ->getByAttributeCode ('price ' );
126
+ $ ctx = isset ($ context ['websiteId ' ]) ? ['websiteId ' => $ context ['websiteId ' ]] : [];
126
127
foreach ($ groups as $ group ) {
128
+ $ ctx ['customerGroupId ' ] = $ group ->getId ();
127
129
$ groupPriceKey = $ this ->fieldNameResolver ->getFieldName (
128
130
$ priceAttribute ,
129
- [ ' customerGroupId ' => $ group -> getId (), ' websiteId ' => $ context [ ' websiteId ' ]]
131
+ $ ctx
130
132
);
131
133
$ allAttributes [$ groupPriceKey ] = [
132
134
'type ' => $ this ->fieldTypeConverter ->convert (FieldTypeConverterInterface::INTERNAL_DATA_TYPE_FLOAT ),
Original file line number Diff line number Diff line change 158
158
<type name =" Magento\Search\Model\Search\PageSizeProvider" >
159
159
<arguments >
160
160
<argument name =" pageSizeBySearchEngine" xsi : type =" array" >
161
- <item name =" elasticsearch6" xsi : type =" number" >2147483647 </item >
161
+ <item name =" elasticsearch6" xsi : type =" number" >10000 </item >
162
162
</argument >
163
163
</arguments >
164
164
</type >
You can’t perform that action at this time.
0 commit comments