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
137137 $ searchCriteria = $ this ->searchCriteriaBuilder ->create ();
138138 $ groups = $ this ->groupRepository ->getList ($ searchCriteria )->getItems ();
139139 $ priceAttribute = $ this ->attributeAdapterProvider ->getByAttributeCode ('price ' );
140+ $ ctx = isset ($ context ['websiteId ' ]) ? ['websiteId ' => $ context ['websiteId ' ]] : [];
140141 foreach ($ groups as $ group ) {
142+ $ ctx ['customerGroupId ' ] = $ group ->getId ();
141143 $ groupPriceKey = $ this ->fieldNameResolver ->getFieldName (
142144 $ priceAttribute ,
143- [ ' customerGroupId ' => $ group -> getId (), ' websiteId ' => $ context [ ' websiteId ' ]]
145+ $ ctx
144146 );
145147 $ allAttributes [$ groupPriceKey ] = [
146148 'type ' => $ this ->fieldTypeConverter ->convert (FieldTypeConverterInterface::INTERNAL_DATA_TYPE_FLOAT ),
Original file line number Diff line number Diff line change 158158 <type name =" Magento\Search\Model\Search\PageSizeProvider" >
159159 <arguments >
160160 <argument name =" pageSizeBySearchEngine" xsi : type =" array" >
161- <item name =" elasticsearch6" xsi : type =" number" >2147483647 </item >
161+ <item name =" elasticsearch6" xsi : type =" number" >10000 </item >
162162 </argument >
163163 </arguments >
164164 </type >
You can’t perform that action at this time.
0 commit comments