Skip to main content

Magento2

Power your online business with the most flexible and scalable ecommerce platform

Error after upgrade Magento into version 2.4.4 with PHP 8.1

After upgrading Magento to version 2.4.4 and PHP 8.1, you might have this error 

Type Error occurred when creating object: Magento\Framework\Communication\Config\Data, Magento\Framework\Reflection\TypeProcessor::resolveFullyQualifiedClassName(): Argument #2 ($typeName) must be of type string, null given, called in /{magento_root}/vendor/magento/framework/Reflection/TypeProcessor.php on line 550
 

Magento 2 search results relevance with elasticsearch?

Magento 2.3 still use "OR" logic for mysql and elasticsearch. Plus "should" conditions (query to ES) are wrong. That's why relevance almost same. But ES significantly improve performance of search and catalog (layered navigation).

 

you have to set AND operator in your elastic search json queries, Override the module-elasticsearch/SearchAdapter/Query/Builder/Match.php. file in your custom module and then The code you have to edit in the build function in line no 75