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 ...
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 ...
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 ...
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 '...
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 ...
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 -> ...
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-...
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)
<...
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 ...
6
votes
Magento 2 CE and ElasticSearch integration
Yes, you can.
Here is step-by-step manual: https://github.com/Smile-SA/elasticsuite/wiki
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 ...
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:...
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 ...
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 ...
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:
...
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/...
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 ...
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"...
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....
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 ...
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 ...
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....
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&...
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....
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&...
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
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.
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/...
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 ...
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-&...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
elasticsearch × 385magento2 × 218
magento2.4 × 55
magento2.3 × 51
catalogsearch × 51
search × 48
reindex × 24
magento2.4.2 × 19
magento2.4.1 × 17
layered-navigation × 14
installation × 11
database × 9
catalog × 9
server-setup × 9
product-sorting × 9
category × 8
magento2.3.4 × 8
indexing × 8
magento2.2 × 7
error × 7
magento2.3.2 × 7
product × 6
magento2.3.1 × 6
aws × 6
indexer × 6