-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Magento 2 version(s) used: 2.4.8-p2
Extension version(s) affected: ^5.3
Description
Some categories are empties
How to reproduce
Create and merch a category with a lot of product (like a root category in "anchor" mode).
This is because of plugin nosto_framework_search_builder
is never applied on Magento\Elasticsearch\ElasticAdapter\SearchAdapter\Mapper
due to the way DI are processed on Magento\Elasticsearch\Elasticsearch5\SearchAdapter\Mapper
Magento 2 mode
- [ * ] Developer
- [ * ] Production
Full page cache
- [ * ] Enabled
- [ * ] Disabled
Possible Solution
Here is a patch (to adapt if necessary)
Index: vendor/nosto/module-nostotagging-cmp/etc/di.xml
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/vendor/nosto/module-nostotagging-cmp/etc/di.xml b/vendor/nosto/module-nostotagging-cmp/etc/di.xml
--- a/vendor/nosto/module-nostotagging-cmp/etc/di.xml
+++ b/vendor/nosto/module-nostotagging-cmp/etc/di.xml
@@ -46,6 +46,9 @@
<type name="Magento\Elasticsearch\Elasticsearch5\SearchAdapter\Mapper">
<plugin name="nosto_elasticsearch_searchadapter_mapper" type="Nosto\Cmp\Plugin\Elasticsearch\SearchAdapter\Mapper" />
</type>
+ <type name="Magento\Elasticsearch\ElasticAdapter\SearchAdapter\Mapper">
+ <plugin name="nosto_elasticsearch_searchadapter_mapper" type="Nosto\Cmp\Plugin\Elasticsearch\SearchAdapter\Mapper" />
+ </type>
<type name="Magento\Framework\Search\Request\Builder">
<plugin name="nosto_framework_search_builder" type="Nosto\Cmp\Plugin\Framework\Search\Request\Builder" />
</type>
Index: vendor/nosto/module-nostotagging-cmp/Plugin/Elasticsearch/SearchAdapter/Mapper.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/vendor/nosto/module-nostotagging-cmp/Plugin/Elasticsearch/SearchAdapter/Mapper.php b/vendor/nosto/module-nostotagging-cmp/Plugin/Elasticsearch/SearchAdapter/Mapper.php
--- a/vendor/nosto/module-nostotagging-cmp/Plugin/Elasticsearch/SearchAdapter/Mapper.php
+++ b/vendor/nosto/module-nostotagging-cmp/Plugin/Elasticsearch/SearchAdapter/Mapper.php
@@ -36,7 +36,7 @@
namespace Nosto\Cmp\Plugin\Elasticsearch\SearchAdapter;
-use Magento\Elasticsearch\Elasticsearch5\SearchAdapter\Mapper as MagentoMapper;
+use Magento\Elasticsearch\ElasticAdapter\SearchAdapter\Mapper as MagentoMapper;
use Magento\Framework\Search\Request\Query\BoolExpression;
use Magento\Framework\Search\RequestInterface;
use Nosto\Cmp\Model\Search\Request as NostoSearchRequest;
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working