Giter Site home page Giter Site logo

Comments (4)

0m3r avatar 0m3r commented on May 24, 2024

Are you using the last version of the code?

Something like that was fixed a couple of months ago

https://github.com/swissup/module-search-mysql-legacy/pull/7/files#diff-093a1e43a11122404c853506b7ca4f661e18dd4f6557ec3089cad8ceae34a606

from module-search-mysql-legacy.

0m3r avatar 0m3r commented on May 24, 2024

After further investigation found that class Magento\Framework\Search\Request\Query\Filter which is used in \Swissup\SearchMysqlLegacy\SearchAdapter\Mysql\Mapper is no longer available in Magento 2.4.5-p1.

You mean that class Magento\Framework\Search\Request\Query\Match which is used in \Swissup\SearchMysqlLegacy\SearchAdapter\Mysql\Mapper is no longer available in Magento 2.4.5-p1

use Magento\Framework\Search\Request\Query\Match as MatchQuery;

Screenshot from 2023-01-19 18-46-23

https://github.com/magento/magento2/commits/2.4-develop/lib/internal/Magento/Framework/Search/Request/Query/MatchQuery.php

magento/magento2@b4b3c15

from module-search-mysql-legacy.

0m3r avatar 0m3r commented on May 24, 2024

I hope this patch will be enough to fix it

diff --git a/SearchAdapter/Mysql/Mapper.php b/SearchAdapter/Mysql/Mapper.php
index 59b5ac3..137fa45 100644
--- a/SearchAdapter/Mysql/Mapper.php
+++ b/SearchAdapter/Mysql/Mapper.php
@@ -18,7 +18,6 @@ use Swissup\SearchMysqlLegacy\SearchAdapter\Mysql\Query\QueryContainerFactory;
 use Magento\Framework\Search\EntityMetadata;
 use Magento\Framework\Search\Request\Query\BoolExpression as BoolQuery;
 use Magento\Framework\Search\Request\Query\Filter as FilterQuery;
-use Magento\Framework\Search\Request\Query\Match as MatchQuery;
 use Magento\Framework\Search\Request\QueryInterface as RequestQueryInterface;
 use Magento\Framework\Search\RequestInterface;
 
@@ -220,7 +219,7 @@ class Mapper
     ) {
         switch ($query->getType()) {
             case RequestQueryInterface::TYPE_MATCH:
-                /** @var MatchQuery $query */
+                /** @var \Magento\Framework\Search\Request\Query\MatchQuery $query */
                 $select = $queryContainer->addMatchQuery(
                     $select,
                     $query,

@ecoprince please apply this patch and try to run setup:di:compile

from module-search-mysql-legacy.

ecoprince avatar ecoprince commented on May 24, 2024

@0m3r Fixed. Thanks!

from module-search-mysql-legacy.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.