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

Magento 2.4 Layered Navigation Filter with Multiple Attributes not working. #3

Open
himanitayal010 opened this issue Mar 9, 2021 · 1 comment

Comments

@himanitayal010
Copy link

himanitayal010 commented Mar 9, 2021

$productCollection->addFieldToFilter($attribute->getAttributeCode(), array('ln_filter' => $valueFilter));

I am using Magento 2.4.1.
I spend hours to debug this issue, I thought this is elasticsearch issue but no, this is this extension issue:
main.CRITICAL: {"error":{"root_cause":[{"type":"parsing_exception","reason":"[terms] unknown token [START_ARRAY] after [ln_filter]","line":1,"col":223}],"type":"parsing_exception","reason":"[terms] unknown token [START_ARRAY] after [ln_filter]","line":1,"col":223},"status":400} {"exception":"[object] (Elasticsearch\Common\Exceptions\BadRequest400Exception(code: 400): {"error":{"root_cause":[{"type":"parsing_exception","reason":"[terms] unknown token [START_ARRAY] after [ln_filter]","line":1,"col":223}],"type":"parsing_exception","reason":"[terms] unknown token [START_ARRAY] after [ln_filter]","line":1,"col":223},"status":400} at /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php:632)"} []

@magiccart
Copy link
Contributor

magiccart commented Mar 10, 2021

@himanitayal010 This the issue caused with ElasticSearch when filter Multivalued on Magento this module just extends from feature Magento. Guys can refer here report here magento/magento2#18802

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