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 @@ -137,10 +137,12 @@ public function getFields(array $context = []): array
137
137
$ searchCriteria = $ this ->searchCriteriaBuilder ->create ();
138
138
$ groups = $ this ->groupRepository ->getList ($ searchCriteria )->getItems ();
139
139
$ priceAttribute = $ this ->attributeAdapterProvider ->getByAttributeCode ('price ' );
140
+ $ ctx = isset ($ context ['websiteId ' ]) ? ['websiteId ' => $ context ['websiteId ' ]] : [];
140
141
foreach ($ groups as $ group ) {
142
+ $ ctx ['customerGroupId ' ] = $ group ->getId ();
141
143
$ groupPriceKey = $ this ->fieldNameResolver ->getFieldName (
142
144
$ priceAttribute ,
143
- [ ' customerGroupId ' => $ group -> getId (), ' websiteId ' => $ context [ ' websiteId ' ]]
145
+ $ ctx
144
146
);
145
147
$ allAttributes [$ groupPriceKey ] = [
146
148
'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