Smile-SA / elasticsuite

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

Search engine set to MySQL still call ElasticSuite #509

Closed bmxmale closed 7 years ago

bmxmale commented 7 years ago

When module is enabled and we change Catalog/Search/Engine back to MySQL, catalogsearch still call ElasticSuite and elasticsearch.

image image

Preconditions

Magento Version : 2.1.7

ElasticSuite Version : 2.3.6

Environment : developer

Third party modules :

Steps to reproduce

  1. Install plugin
  2. Change Catalog/Search/Engine back to MySQL
  3. Clean cache, DI Compile
  4. On search query magento still call elasticsuite and try to connect elasticsearch node.

Expected result

  1. After change search engine to default, magento should back to mysql search.
romainruaud commented 7 years ago

Hello @bmxmale

This is due to the fact that many parts of the ElasticSuite module are retrieving informations from Elasticsearch (Product Collection is retrieving facets, count of products by attribute set, etc ....).

Also, there is no point using the module without setting the search engine to Smile Elasticsuite, since most of the module standard features just cannot work with MySQL engine, or with Solr or whatever.

You can consider this is by design. You have 2 choices here :

I close this issue for now, you can reopen it if needed.

Best regards

bmxmale commented 7 years ago

When we set search engine to MySQL catalog_product indicies will not be recreated at reindex if we drop it before on elasticsearch.

https://github.com/Smile-SA/elasticsuite/issues/173#issuecomment-321014140