Replies: 2 comments
-
Hi, this should not be a plugin on the client. With Elasticsuite, this should be a "filter", as it's done for the stock : And the underlying implementation : Regards |
Beta Was this translation helpful? Give feedback.
-
I will give it a try. This works now but I really want to try and make it work with Elastic Suite as well. |
Beta Was this translation helpful? Give feedback.
-
Hi there,
I have developed a module that can filter products based on customer groups.
After login you would only see the customer group assigned products.
This works fine without the Smile Elastic Suite module directly extending elastic search 7.
My question is what Class would I need to use instead of "Magento\Elasticsearch7\Model\Client\Elasticsearch" in case I use the Smile Elasticsuite in my di.xml. I've been trying some classes but have been unlucky until now.
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <type name="Magento\Elasticsearch7\Model\Client\Elasticsearch"> <plugin name="opck_customcollection_elastic_product_index" type="Opck\FilterProducts\Plugin\ElasticLayerPlugin" /> </type> </config>
Beta Was this translation helpful? Give feedback.
All reactions