cancel
Showing results for 
Search instead for 
Did you mean: 

Elasticsearch 6 error with dropdown attribute

Elasticsearch 6 error with dropdown attribute

Hello,

 

we configured Magento 2.3.4 and Elasticsearch 6.7.1, but when we try to filter in the layered navigation for a dropdown attribute, we have the following error:

{"error":{"root_cause":[{"type":"parsing_exception","reason":"[terms] unknown token [START_ARRAY] after [finset]","line":1,"col":235}],"type":"parsing_exception","reason":"[terms] unknown token [START_ARRAY] after [finset]","line":1,"col":235},"status":400} {"exception":"[object] (Elasticsearch\\Common\\Exceptions\\BadRequest400Exception(code: 400): {\"error\":{\"root_cause\":[{\"type\":\"parsing_exception\",\"reason\":\"[terms] unknown token [START_ARRAY] after [finset]\",\"line\":1,\"col\":235}],\"type\":\"parsing_exception\",\"reason\":\"[terms] unknown token [START_ARRAY] after [finset]\",\"line\":1,\"col\":235},\"status\":400} at /opt/bitnami/apps/magento/htdocs/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php:636)"} []

Does anyone have experience on this?

Thanks.

8 REPLIES 8

Re: Elasticsearch 6 error with dropdown attribute

Hello @benjcarriero 

 

https://github.com/magento/magento2/commit/4844c67145e87ae77dc30b09907fa3dfbf181fd5

 

please check above commit and fix it.


if works then mark as solution.


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer

Re: Elasticsearch 6 error with dropdown attribute

Hello @Sunil Patel ,

 

I have already tried, but the problem persists.
What else could I see?

Re: Elasticsearch 6 error with dropdown attribute

Have you removed 

 

 $resolvedField = $this->fieldMapper->getFieldName(
                $match['field'],
                ['type' => FieldMapperInterface::TYPE_QUERY]
            );

Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer

Re: Elasticsearch 6 error with dropdown attribute

Yes i did it.

Re: Elasticsearch 6 error with dropdown attribute

Any update here?  @benjcarriero - any chance you got this to work?  Similar problem on our end.  

Re: Elasticsearch 6 error with dropdown attribute

@prockingpr408a Unfortunately not. On Magento 2.3 version we have not enabled Elasticsearch

Re: Elasticsearch 6 error with dropdown attribute

@prockingpr408a Unfortunately not. On Magento 2.3 version we have not enabled Elasticsearch

Re: Elasticsearch 6 error with dropdown attribute

Guys the solution is simple, check your website access log.

There are some search engine bots accessing your website for crawling, some are going in depth doing filter products list. This cause error, as bot trying to play with our filter/search system.

(bot like semrush, etc)

This is the reason for exception error log from elasticsearch.

To prevent this, make sure setup proper robots.txt