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

Do not send filter to ES if they do not exists in Sylius #210

Open
maximehuran opened this issue Jun 5, 2024 · 1 comment
Open

Do not send filter to ES if they do not exists in Sylius #210

maximehuran opened this issue Jun 5, 2024 · 1 comment

Comments

@maximehuran
Copy link
Member

maximehuran commented Jun 5, 2024

Exemple /taxons/my-taxon?attributes[toto][]=Test

If attribute toto does not exists or it exists but is not filterable I will have a 500

[2024-06-05T15:09:36.177871+00:00] request.CRITICAL: Uncaught PHP Exception Elastica\Exception\ResponseException: "failed to create query: [nested] failed to find nested object under path [attributes.toto] [index: monsieurbiz_product_fr_2024-06-05-150918] [reason: all shards failed]" at /app/tests/apps/sylius/vendor/ruflin/elastica/src/Transport/Http.php line 178 
@costa-jeremy
Copy link

Hello,

I have the same issue with instant search.
Have you found a solution to this problem?
It seems that if I run the command 'bin/console monsieurbiz:search
' again, it works.

Thanks

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

2 participants