di.xml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?xml version="1.0"?>
  2. <!--
  3. /**
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. -->
  8. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
  9. <virtualType name="Magento\CatalogSearch\Model\Session\Storage" type="Magento\Framework\Session\Storage">
  10. <arguments>
  11. <argument name="namespace" xsi:type="string">catalogsearch</argument>
  12. </arguments>
  13. </virtualType>
  14. <virtualType name="Magento\CatalogSearch\Model\Session" type="Magento\Framework\Session\Generic">
  15. <arguments>
  16. <argument name="storage" xsi:type="object">Magento\CatalogSearch\Model\Session\Storage</argument>
  17. </arguments>
  18. </virtualType>
  19. <type name="Magento\Catalog\Block\Adminhtml\Product\Attribute\Edit\Tab\Front">
  20. <plugin name="search_weigh" type="Magento\CatalogSearch\Block\Plugin\FrontTabPlugin" />
  21. </type>
  22. <type name="Magento\Catalog\Ui\DataProvider\Product\ProductDataProvider">
  23. <arguments>
  24. <argument name="addFilterStrategies" xsi:type="array">
  25. <item name="fulltext" xsi:type="object">Magento\CatalogSearch\Ui\DataProvider\Product\AddFulltextFilterToCollection</item>
  26. </argument>
  27. </arguments>
  28. </type>
  29. <type name="Magento\Catalog\Model\ProductLink\Search">
  30. <arguments>
  31. <argument name="filter" xsi:type="object">Magento\CatalogSearch\Ui\DataProvider\Product\AddFulltextFilterToCollection</argument>
  32. </arguments>
  33. </type>
  34. <type name="Magento\Catalog\Model\ResourceModel\Category">
  35. <plugin name="fulltext_search_indexer" type="Magento\CatalogSearch\Model\Indexer\Fulltext\Model\Plugin\Category"/>
  36. </type>
  37. </config>