<?xml version="1.0"?>
<!--
/**
 * @author Amasty Team
 * @copyright Copyright (c) Amasty (https://www.amasty.com)
 * @package Visual Merchandiser for Magento 2
 */-->

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="Magento\CatalogSearch\Model\ResourceModel\Fulltext\Collection">
        <plugin name="Amasty_VisualMerch::SetCollectionLoadProcessFlag"
                type="Amasty\VisualMerch\Plugin\CatalogSearch\Model\ResourceModel\Fulltext\Collection\SetCollectionLoadProcessFlag"/>
    </type>
    <type name="Amasty\Shopby\Model\ResourceModel\Fulltext\Collection">
        <plugin name="Amasty_VisualMerch::SetCollectionLoadProcessFlag"
                type="Amasty\VisualMerch\Plugin\CatalogSearch\Model\ResourceModel\Fulltext\Collection\SetCollectionLoadProcessFlag"/>
    </type>
    <type name="Amasty\ShopbyLite\Model\ResourceModel\Fulltext\Collection">
        <plugin name="Amasty_VisualMerch::SetCollectionLoadProcessFlag"
                type="Amasty\VisualMerch\Plugin\CatalogSearch\Model\ResourceModel\Fulltext\Collection\SetCollectionLoadProcessFlag"/>
    </type>

    <type name="Magento\Framework\Api\Search\SearchInterface">
        <plugin name="Amasty_VisualMerch::AdjustResultWithPinnedProducts"
                type="Amasty\VisualMerch\Plugin\Framework\Api\Search\SearchInterface\AdjustResultWithPinnedProducts" />
    </type>
</config>
