<?php
namespace Magento\Elasticsearch\Model\Adapter\Elasticsearch;

/**
 * Interceptor class for @see \Magento\Elasticsearch\Model\Adapter\Elasticsearch
 */
class Interceptor extends \Magento\Elasticsearch\Model\Adapter\Elasticsearch implements \Magento\Framework\Interception\InterceptorInterface
{
    use \Magento\Framework\Interception\Interceptor;

    public function __construct(\Magento\Elasticsearch\SearchAdapter\ConnectionManager $connectionManager, \Magento\Elasticsearch\Model\Adapter\FieldMapperInterface $fieldMapper, \Magento\Elasticsearch\Model\Config $clientConfig, \Magento\Elasticsearch\Model\Adapter\Index\BuilderInterface $indexBuilder, \Psr\Log\LoggerInterface $logger, \Magento\Elasticsearch\Model\Adapter\Index\IndexNameResolver $indexNameResolver, \Magento\Elasticsearch\Model\Adapter\BatchDataMapperInterface $batchDocumentDataMapper, \Magento\AdvancedSearch\Helper\Data $helper, $options = [], ?\Magento\Catalog\Api\ProductAttributeRepositoryInterface $productAttributeRepository = null, ?\Magento\Elasticsearch\Model\Adapter\FieldMapper\Product\FieldProvider\StaticField $staticFieldProvider = null, ?\Magento\Framework\Stdlib\ArrayManager $arrayManager = null, array $responseErrorExceptionList = [])
    {
        $this->___init();
        parent::__construct($connectionManager, $fieldMapper, $clientConfig, $indexBuilder, $logger, $indexNameResolver, $batchDocumentDataMapper, $helper, $options, $productAttributeRepository, $staticFieldProvider, $arrayManager, $responseErrorExceptionList);
    }

    /**
     * {@inheritdoc}
     */
    public function prepareDocsPerStore(array $documentData, $storeId)
    {
        $pluginInfo = $this->pluginList->getNext($this->subjectType, 'prepareDocsPerStore');
        return $pluginInfo ? $this->___callPlugins('prepareDocsPerStore', func_get_args(), $pluginInfo) : parent::prepareDocsPerStore($documentData, $storeId);
    }

    /**
     * {@inheritdoc}
     */
    public function addDocs(array $documents, $storeId, $mappedIndexerId)
    {
        $pluginInfo = $this->pluginList->getNext($this->subjectType, 'addDocs');
        return $pluginInfo ? $this->___callPlugins('addDocs', func_get_args(), $pluginInfo) : parent::addDocs($documents, $storeId, $mappedIndexerId);
    }
}
