Smile-SA / elasticsuite

Smile ElasticSuite - Magento 2 merchandising and search engine built on ElasticSearch
https://elasticsuite.io
Open Software License 3.0
761 stars 340 forks source link

Catalog Search indexer and ElasticSuite Category Indexing indexer process unknown error #1338

Closed hirenrk4 closed 5 years ago

hirenrk4 commented 5 years ago

When run the bin/magento indexer:reindex command got following issue

Catalog Search indexer process unknown error: {"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"No handler for type [text] declared on field [search]"}],"type":"mapper_parsing_exception","reason":"No handler for type [text] declared on field [search]"},"status":400} ElasticSuite Category Indexing indexer process unknown error: {"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"No handler for type [text] declared on field [search]"}],"type":"mapper_parsing_exception","reason":"No handler for type [text] declared on field [search]"},"status":400}

Preconditions

Magento Version :2.3.0

ElasticSuite Version : ^2.7

Environment : production

elasticsearch/elasticsearch                                       v5.4.0    PHP Client for Elasticsearch
magento/module-elasticsearch                                      100.3.0   N/A
magento/module-inventory-elasticsearch                            1.0.0     N/A
smile/elasticsuite                                                2.7.4     Magento 2 merchandising and search engine built on ElasticSearch 

i have one little confusion i have two sites site 1 smile/elasticsuite: "^2.5.0" site 2 smile/elasticsuite: "^2.7.0"

So as per this https://github.com/Smile-SA/elasticsuite/wiki/ServerConfig-6.x

If i upgrade ElasticSearch on the server, will it cause an issue on the site 2? both sites are on same server

elasticsuite 2.5.0 is compatible with So as per this https://github.com/Smile-SA/elasticsuite/wiki/ServerConfig-6.x ?

rbayet commented 5 years ago

Hello @hirenrk4,

Can you run the composer info | grep -i elastic command for your site 1 with "^2.5.0" too ? Can you also give me your ElasticSearch server version curl http://your.es.server:9200 ? And the Magento versions for site 1 ?

To sum it up :

The error you gave is usually due to the fact that a "^2.5.0" install (with a 2.5.x release) gets upgraded to a 2.6.x release of ElasticSuite which is no longer compatible with the ElasticSearch 2.x instance he used to communicate with. I also suppose your site 1 is a Magento 2.2.x ?

If I guessed correctly and if you plan to continue using the same ES server instance for both sites, I would advise to :

Regards,

hirenrk4 commented 5 years ago

Hello @rbayet,

please check curl https://prnt.sc/msv3ne both site are same configuration.

actually my question is If i upgrade ElasticSearch ElasticSearch 6.x on the server, will it cause an issue with smile/elasticsuite: "^2.5.0"?

smile/elasticsuite: "2.5.0" compatible with ElasticSearch ElasticSearch 6.x?

rbayet commented 5 years ago

Hello @hirenrk4,

I answered you on the compatibility of smile/elasticsuite 2.5.x and ElasticSearch 6.x : they are not compatible.

Regards