Closed predragstojiljkovic closed 1 year ago
Hi @predragstojiljkovic
did you do this command ? composer require magento/module-elasticsearch-8 --with-all-dependencies
?
This command is not needed to install Elasticsuite, and worst, it will enforce the installation of the Elasticsearch PHP Client in version 8, which is not compatible with Elasticsuite since they FQCN changed.
This will be solved by #2910 but it's unmerged actually.
For now, you can probably try to do :
composer remove magento/module-elasticsearch-8
composer require elasticsearch/elasticsearch ~7.17.0
Actually Magento allows both versions of the client : https://github.com/magento/magento2/blob/2.4.6-p1/composer.json#L45
Yes. I did composer require magento/module-elasticsearch-8 --with-all-dependencies
.
Will composer require elasticsearch/elasticsearch ~7.17.0
work with Elasticsearch 8.4.0 (since we can not change the version of Elasticsearch itself on that server and not allowed to install a different one)?
Yes, the 7.x client works well with the v8.x of Elasticsearch
@predragstojiljkovic,
Have you solved your problem?
BR, Vadym
No, not really. Removing magento/module-elasticsearch-8 and installing elasticsearch/elasticsearch ~7.17.0 and smile/elasticsuite ~2.11.0 caused many other problems. I tried fixing it one by one, but it took too long. So I reverted it all and gave up on installing smile/elasticsuite for now. I hope you will release a new version soon that will work with magento/module-elasticsearch-8 :) I'll be patient until then...
@predragstojiljkovic we've plenty of projects running with Magento 2.4.6 and Elasticsuite 2.11.x with the Elasticsearch 7.17 client.
That's also the stack we test on our CI jobs.
Can you please give us more details regarding the issues you've had after removing magento/module-elasticsearch-8 and downgrading the PHP client ?
Regards
This issue was waiting update from the author for too long. Without any update, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away! Thanks for your contribution.
Preconditions
Magento Version : 2.4.6-p1
ElasticSuite Version : 2.11
Elasticsearch version: 8.4.0
Environment : Production mode
Third party modules : Porto theme
Steps to reproduce
In ClassReader.php line 57: Impossible to process constructor argument Parameter #0 [ Elasticsearch\ClientBuilder $clientBuilder ] of Smile\ElasticsuiteCore\Client\ClientBuilder class
In GetParameterClassTrait.php line 34: Class "Elasticsearch\ClientBuilder" does not exist
Expected result
Actual result