30 votes
Accepted

Magento 2.x Elasticsearch Category Products Not Showing

I located an exception in ./magento/var/log/exception.log that showed an issue with the configuration of a custom attribute. The attribute was set to a type of text for the attribute custom_attribute ...
user avatar
10 votes
Accepted

Your current search engine, 'Elasticsearch 2', is not supported

From the error message, it seems to me that ES2 is configured to be used instead of ES7. You can validate this by running the following command: php bin/magento config:show catalog/search/engine If ...
user avatar
  • 4,683
9 votes
Accepted

How to disable ElasticSearch using terminal?

⚠️ Since Magento 2.4, ElasticSearch is required and MySQL is not supported as a search engine anymore. You can use the Magento 2 CLI to do it, you can check your current search engine using: php -f ...
user avatar
9 votes
Accepted

Magento 2: How to setup Elasticsearch from CLI?

Found a way to do it. We added these commands to our post-install script: magento config:set catalog/search/engine 'elasticsearch5' magento config:set catalog/search/elasticsearch5_server_hostname '...
user avatar
9 votes

Types cannot be provided in put mapping requests : Magento2.3

Go to Magento\Elasticsearch6\Model\Client\Elasticsearch Find function addFieldsMapping approx line number 241 Add new element to $params array 'include_type_name' => true, This will resolve ...
user avatar
9 votes
Accepted

Magento 2: How to remove "Did you mean" section from search page?

https://docs.magento.com/user-guide/catalog/search-configuration.html#general-search-options You can disable(select no) following both the options, from System Configuration -> Catalog -> ...
user avatar
  • 1,735
8 votes

Issue with Elastic search 6.x in Magento 2.3.3

Got across this several times and we came across this https://support.magento.com/hc/en-us/articles/360027356612-Elasticsearch-5-is-configured-but-search-page-does-not-load-with-Fielddata-is-disabled-...
user avatar
  • 313
8 votes

Custom product collection filter doesnt work with Magento 2 elasticsearch ( but work with mysql)

Just been through the same fun! Here is the solution for custom collections layered nav, specifically for Elastic Search; Create a plugin based on your version; Elastic Search 5 (built in) <...
user avatar
6 votes
Accepted

Magento2: What are the differences between Elasticsearch and Solr?

As you said, Solr and Elasticsearch are both built on top of the Apache Lucene project, so what's the difference and why would Magento deprecate support for Solr in favor of Elasticsearch? First, if ...
user avatar
6 votes

Magento 2 CE and ElasticSearch integration

Yes, you can. Here is step-by-step manual: https://github.com/Smile-SA/elasticsuite/wiki
user avatar
6 votes

Elastic search was not working in Magento 2.3.2 (Enterprise edition)

Open below URL directly in the browser http://127.0.0.1:9200/_cat/indices?v 127.0.0.1 - Replace with Elasticsearch Server Hostname 9200 - Replace with Elasticsearch Server Port Will show ...
user avatar
  • 3,572
6 votes
Accepted

Integrate or enable ElasticSearch with Magento 2.3.3

To check the ElasticSearch on the storefront working or not. Below plugin may help you. di.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:...
user avatar
  • 3,572
6 votes
Accepted

Magento 2.4 Elastic search error: Text fields are not optimised for operations

on Investigation came to know this issue is due to upgrade process. Some product attributes which are text/varchar set to be filerable in search. like for me gift_price mentioned in above error. So ...
user avatar
5 votes
Accepted

Magento 2 CE and ElasticSearch integration

Magento 2 Open Source (CE) does not provide integration with elasticsearch by default. We have following options: Create your own Custom extension (Can be explained separately) Use following Free ...
user avatar
  • 488
5 votes
Accepted

Magento 2 | Reindex very slow in local server

Reindexing on MariaDB 10.4 takes more time compared to other MariaDB or MySQL versions. As a workaround, we suggest modifying the default MariaDB configuration and setting the following parameters: ...
user avatar
  • 9,509
4 votes

Magento 2.3 Elastic Search 5.0+ Error on some pages

Same problem here with a different attribute: Exception #0 (Exception): Notice: Undefined index: belastbarkeit_bucket in /var/www/public/vendor/magento/module-elasticsearch/SearchAdapter/Aggregation/...
user avatar
4 votes

Magento 2.3 search results relevance with elasticsearch?

you have to set AND operator in your elastic search json queries, Override the module-elasticsearch/SearchAdapter/Query/Builder/Match.php. file in your custom module and then The code you have to edit ...
user avatar
4 votes
Accepted

Magento 2.3.0 + elasticsearch 6.4.2

If you are using Magento 2.3.0 you have to use elasticsearch 5.x. Refer to offical doc. Composer of Magento 2.3.0 { "name": "magento/module-elasticsearch", "description": "N/A", "require"...
user avatar
  • 7,342
4 votes
Accepted

Magento 2.3: Difference b/w Elastic search and Built-In search

We have worked with the Search and from my point of view: Built In Search: This is MYSQL Search Here Data loads from Database that's why it is time consuming process. It effects on site performance....
user avatar
4 votes
Accepted

two magento site in one elasticsearch

That is the exact role of the index prefix. You can have multiple applications write and read to / from the same ES instance. You can have 2 magento websites using the same ES. Just make sure you set ...
user avatar
  • 195k
4 votes

Elasticsearch Limit of total fields [9165] in index [product_1_v2] has been exceeded

Elasticsearch variable - index.mapping.total_fields.limit The maximum number of fields in an index. Field and object mappings, as well as field aliases count towards this limit. The default value is ...
user avatar
4 votes

Magento 2.4.0 ElasticSearch not alive

You must enable ElasticSearch in Magento 2.4, it's a requirement as you can see in the page Magento 2.4 technology stack requirements. You should use ElastiSearch 7, not ElasticSearch 6 as Magento 2....
user avatar
4 votes

Magento2 Elastic Search Configuration Issue

Check if the required modules are installed and enabled. In my case (during an update from Magento 2.3 to Magento 2.4) the modules "Magento_Elasticsearch" and "Magento_Elasticsearch6&...
user avatar
  • 71
4 votes

Magento 2.4 : Missing required argument $engines of Magento\Search\Model\EngineResolver

You need to re-activate the ElasticSearch modules if you have de-activated them. ElasticSearch is required to run Magento 2.4. Edit: From Magento website: "As of Magento 2.4.0, Elasticsearch 7.6....
user avatar
  • 583
4 votes

Magento 2.4 : Missing required argument $engines of Magento\Search\Model\EngineResolver

If you're not interested to use elastic search in magneto 2.4.0 or above version then you can use below mentioned module ("The Default MySQL search engine has been removed from Magento 2.4.0&...
user avatar
  • 1,372
4 votes

Compiling failed

Make sure you use: ElasticSuite 2.8.x for Magento < 2.3.5 Opensource: composer require smile/elasticsuite ~2.8.0 see: https://github.com/Smile-SA/elasticsuite
user avatar
4 votes

Magento 2.4.1 and Elasticsearch 7.6.2 "no mapping found" issue

Run bin/magento indexer:reindex from your root directory folder.
user avatar
  • 661
4 votes
Accepted

Magento 2 Elastic search / Elastic suite module from Smile

If you are using a custom theme you may need to ensure that the layout in your theme is rendering the ElasticSuite blocks for search and not the defaults. You need to check Magento_Search/layout/...
user avatar
  • 5,556
4 votes
Accepted

elasticsearch command error

Maybe you need to increase the timeout of the ElasticSearch service. run the command: sudo systemctl edit --full elasticsearch.service Set the TimeoutStartSec to 900 TimeoutStartSec=900 Read more ...
user avatar
4 votes
Accepted

How to resolve field parse error with Elasticsearch filters?

Change the following line from $productCollection->addFieldToFilter($attribute->getAttributeCode(), ["finset" => $filters]); to: $productCollection->addFieldToFilter($attribute-&...
user avatar
  • 34.3k

Only top scored, non community-wiki answers of a minimum length are eligible