You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to create a plugin where I can change the sql script of the query when loading the screen. How could I perform this change in this class?
This is original plugin code for elasticsearch7 on Magento\Framework\Search\AdapterInterface. This works fine with elasticsearch7, but not with elasticsuite.
use Vendor\Marketplace\Helper\Data as MpHelper;
use Magento\Framework\Search\RequestInterface;
use Magento\Elasticsearch\SearchAdapter\Aggregation\Builder as AggregationBuilder;
use Magento\Elasticsearch\SearchAdapter\ConnectionManager;
use Magento\Elasticsearch\SearchAdapter\ResponseFactory;
use Magento\Elasticsearch7\SearchAdapter\Mapper;
use Magento\Elasticsearch\SearchAdapter\QueryContainerFactory;
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi
I need to create a plugin where I can change the sql script of the query when loading the screen. How could I perform this change in this class?
This is original plugin code for elasticsearch7 on Magento\Framework\Search\AdapterInterface. This works fine with elasticsearch7, but not with elasticsuite.
`namespace Vendor\Marketplace\Plugin\Elasticsearch7\SearchAdapter;
use Vendor\Marketplace\Helper\Data as MpHelper;
use Magento\Framework\Search\RequestInterface;
use Magento\Elasticsearch\SearchAdapter\Aggregation\Builder as AggregationBuilder;
use Magento\Elasticsearch\SearchAdapter\ConnectionManager;
use Magento\Elasticsearch\SearchAdapter\ResponseFactory;
use Magento\Elasticsearch7\SearchAdapter\Mapper;
use Magento\Elasticsearch\SearchAdapter\QueryContainerFactory;
class Adapter
{
}`
Can anybody help me?
Beta Was this translation helpful? Give feedback.
All reactions