Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reindex issue using OpenSearch #3538

Closed
ganeddact opened this issue Feb 21, 2025 · 4 comments
Closed

Reindex issue using OpenSearch #3538

ganeddact opened this issue Feb 21, 2025 · 4 comments
Assignees

Comments

@ganeddact
Copy link

ganeddact commented Feb 21, 2025

Preconditions

Opensearch 2.12

Magento Version : 2.4.7-p4

ElasticSuite Version : 2.11.10

Environment : developer

Steps to reproduce

  1. Run bin/magento indexer:reindex

Expected result

  1. All indexes complete normally

Actual result

  1. Catalog Search and ElasticSuite Category Indexing indexes return an error:
    Catalog Search index process error during indexation process:
    OpenSearch\Client::performRequest(): Return value must be of type array|string|null, GuzzleHttp\Ring\Future\FutureArray returned
    ElasticSuite Category Indexing index process error during indexation process:
    OpenSearch\Client::performRequest(): Return value must be of type array|string|null, GuzzleHttp\Ring\Future\FutureArray returned

With 2.4.7-p3 I didn't notice this problem, so I'm wondering if the security patch p9 has introduced something that broke this, or if it's something else.

@Bashev
Copy link
Contributor

Bashev commented Feb 22, 2025

I had the same before few days. You are probably using opensearch-php >= 2.4.0 which are comes with update of magento 2.4.7-p4.

My suggestion is to downgrade opensearch-project/opensearch-php to version 2.3.1 and update elasticsuite to latest version 2.11.10.1

For reference: #3522 and https://github.com/Smile-SA/elasticsuite/releases/tag/2.11.10.1

I was not go in depth, because i just was to fix it on the production environment.

@rbayet
Copy link
Collaborator

rbayet commented Feb 24, 2025

@ganeddact see @Bashev comment above to address the issue.

@ganeddact
Copy link
Author

Thanks for your help, I didn't notice that topic before.
I've moved to the latest version and downgraded opensearch-php to 2.3.1 and the problem has disappeared.
Thanks again

@nobodyfamouz
Copy link

Danke, @Bashev ! It works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants