| Current Path : /var/www/www.indacotrentino.com/www/vendor/magento/module-inventory-elasticsearch/etc/ |
| Current File : /var/www/www.indacotrentino.com/www/vendor/magento/module-inventory-elasticsearch/etc/di.xml |
<?xml version="1.0"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<preference for="Magento\InventoryCatalogApi\Model\SortableBySaleabilityInterface"
type="Magento\InventoryElasticsearch\Model\ResourceModel\SortableBySaleabilityProvider"/>
<type name="Magento\CatalogSearch\Model\Indexer\Fulltext\Action\DataProvider">
<plugin name="stockedProductsFilterPlugin" disabled="true"/>
<plugin name="stockedProductFilterByInventoryStockPlugin" type="Magento\InventoryElasticsearch\Plugin\CatalogSearch\Model\Indexer\Fulltext\Action\DataProvider\StockedProductFilterByInventoryStock"/>
</type>
<type name="Magento\Elasticsearch\ElasticAdapter\Model\Adapter\FieldMapper\ProductFieldMapper">
<plugin name="addOutOfStockMapper" type="Magento\InventoryElasticsearch\Plugin\Model\Adapter\FieldMapper\AdditionalFieldMapperPlugin"/>
</type>
<type name="Magento\Elasticsearch\Model\Adapter\BatchDataMapper\ProductDataMapper">
<plugin name="addOutOfStockDataToMapperResult" type="Magento\InventoryElasticsearch\Plugin\Model\Adapter\BatchDataMapper\ProductDataMapperPlugin"/>
</type>
</config>