magento2.3 – Magento2: How can you check/set which Elasticsearch index is currently being used

We have a large catalog (400k products) that takes a day or two to reindex.

Occasionally I’ve had something go wrong with the indexing process and then nothing is searchable (code errors). I don’t want the site down for days if this happens, so I’d like to clone the current index, then start the Magento reindexing, and if something goes haywire, restore the backup index.

I can’t find how to see/overwrite which version of the index is currently being used.

magento2 – Magento 2 Vue storefront [search] Can not connect the vue-storefront-api / ElasticSearch instance!

magento2 – Magento 2 Vue storefront (search) Can not connect the vue-storefront-api / ElasticSearch instance! – Magento Stack Exchange

development – Magento Cloud Docker Can’t get version of elasticsearch: cURL error 6: Could not resolve host: elasticsearch

I want to set up a Local Development Environment with Docker but I have no experience with Docker.
I ran ./bin/magento-docker ece-deployand get the error: ERROR: [132] Can't get version of elasticsearch: cURL error 6: Could not resolve host: elasticsearch.
Can anyone help me please with this issue?
This a part of my docker-compose.yml:

    hostname: elasticsearch.magento2.docker
    image: 'magento/magento-cloud-docker-elasticsearch:7.7-1.2.3'
        soft: -1
        hard: -1
      - bootstrap.memory_lock=true
          - elasticsearch.magento2.docker

Thank you!

magento2 – Elasticsearch – M2.4 – Docker: Could not validate a connection to Elasticsearch. No alive nodes found in your cluster

I have a docker with these env

docker ps
CONTAINER ID        IMAGE                  COMMAND                  CREATED             STATUS              PORTS                                            NAMES
9c46a3807d4f        dc_php-apache          "docker-php-entrypoi…"   21 hours ago        Up 21 hours>80/tcp,>443/tcp      dc_php-apache_1
2f3e7a799029        mariadb:10.3           "docker-entrypoint.s…"   21 hours ago        Up 21 hours         3306/tcp                                         dc_mariadb_1
6a40a702e37b        elasticsearch:7.8.1    "/tini -- /usr/local…"   21 hours ago        Up 21 hours>9200/tcp,>9300/tcp   dc_elasticsearch_1

Now when I run bin/magento setup:upgrade

I’m getting Could not validate a connection to Elasticsearch. No alive nodes found in your cluster
I’m probably just missing a config somewhere but I want find where, activating or not the module Magento_InventoryElasticsearch doesn’t seem to have any effect.

Thanks for your assistance !

magento2.3 – Magento 2.3 ElasticSearch Suite 1.9 Product Filter Not Showing Simple Products when selecting a colour. It will only show configurable ones

I’m working on a Magento 2.3.6 site which Catalog / Search Engine setup for ElasticSearch Suite 1.9.

The products’ visibility are setup this way:
Simple products: Search
Configurable products: Search, Catalog

On the frontend when selecting a filter, eg a colour, the results are not showing simple products which matches the filter. It will only display configurable ones.

I don’t want the simple products to show in the catalog, but the only way ElasticSearch Suite filter bar will display the variations will be if their visibility is set to Catalog or “Catalog, Search”.

While debugging the elasticsearch query, I can see that somehow visibility is being set twice


enter image description here

Does anyone know why this could be happening? I’ve reindexed the DB so it’s not a problem with that. If I change a Simple product Visibility from Search to Catalog, that simple product it will start being displayed when filtering by any of the filterable attributes.

magento2.3 – Elasticsearch not able to search for term with a slash / in it

I am using Elasticsearch and Elasticsearch not able to search for term with a slash / in it . This issue is solved on version 2.4 and what i am using is version 2.3.5 . I don’t plan an upgrade in near future. What kind of workaround would you suggest for this problem?

When i use slash and search this is a part of the error message i get .
{“0”:”{“error”:{“root_cause”:[{“type”:”query_shard_exception”,”reason”:”failed to create query: {n “query_string” : {n “query” : “sku: …

elasticsearch – The management licensing in Magento 2 is only a white page

Recently I’ve installed two extension:

Ves Megamenu
Mirasvit ElasticSearch

The installation and upgrading was successful, but…

Entering on my admin panel to enter the key license for my both extensions,
I noted the page only shows a white space as the pic:

enter image description here

I followed this page to install them.

After search many ways to solve it, I have no clear how to solve it.
Someone also happened same?

thank you!

elasticsearch – Elastic search throws errror while running upgrade command via CLI in magento 2

I have successfully cloned & installed a Magento cloud environment Magento 2.4.2 in my local instance.

And also installed elastic search and tested it via the command line and it’s working fine.

Note: I have followed his link to install and configure elastic search

Output from the command line:
enter image description here

But while running upgrade command throws following error.

enter image description here

Elastic search configuration file


enter image description here

Can anyone please help me to sort out this?

magento2 – Magento 2.4.0 – Getting Error Could not validate a connection to Elasticsearch. No alive nodes found in your cluster

I have installed Elasticsearch in my Linux Mint & It’s working fine. Here is the steps.

Run the below command to Install Elasticsearch In locally.

Download and install the public signing key :

wget -qO - | sudo apt-key add -

Installing from the APT repositoryedit

You may need to install the apt-transport-https package on Debian before proceeding :

sudo apt-get install apt-transport-https

Save the repository definition to /etc/apt/sources.list.d/elastic-7.x.list :

echo "deb stable main" | sudo tee /etc/apt/sources.list.d/elastic-7.x.list

You can install the Elasticsearch Debian package with :

sudo apt-get update && sudo apt-get install elasticsearch

Elasticsearch is not started automatically after installation. How to start and stop Elasticsearch depends on whether your system uses SysV init or systemd (used by newer distributions).

ps -p 1

Running Elasticsearch with SysV init : Use the update-rc.d command to configure Elasticsearch to start automatically when the system boots up :

sudo update-rc.d elasticsearch defaults 95 10

Elasticsearch can be started and stopped using the service command :

sudo -i service elasticsearch start

sudo -i service elasticsearch stop

Configure Apache and Elasticsearch : Set up a proxy (Set up a proxy for Apache 2.4)

Enable mod_proxy as follows :

a2enmod proxy_http or sudo a2enmod proxy_http

Use a text editor to open /etc/apache2/sites-available/000-default.conf

Add the following directive at the top of the file :

Listen 8080

Add the following at the bottom of the file :

<VirtualHost *:8080>
    ProxyPass "/" "http://localhost:9200/"
    ProxyPassReverse "/" "http://localhost:9200/"

Restart Apache :

service apache2 restart or sudo service apache2 restart

Verify the proxy works by entering the following command :

For example, if your proxy uses port 8080:

curl -i http://localhost:8080/_cluster/health

If curl request success then messages display like below :

HTTP/1.1 200 OK
Date: Sun, 23 Aug 2020 06:05:56 GMT
Server: Apache/2.4.18 (Ubuntu)
content-type: application/json; charset=UTF-8
content-length: 389


Go to Admin Panel -> Stores -> Settings -> Configuration -> Catalog -> Catalog Search. Change the settings like below.

Search Engine : Search Engine7

Elasticsearch Server Hostname : localhost

Elasticsearch Server Port : 8080

Elasticsearch Index Prefix : magento2

Enable Elasticsearch HTTP Auth : No

Elasticsearch Server Timeout : 15

Now save the configuration & run below cache clean command.

php bin/magento cache:clean

Now click on Test Connection button.

After successful you will receive Successful! Test again? in Test Connection button.

Ref : Dev Docs & Elasticsearch

For More Click here

magento2 – Suddenly stop working elastic search, Error message : Couldn’t connect to host, Elasticsearch down?

I am stuck on this issue my code suddenly stops working not able to find the root cause of any idea regarding this. Earlier it was working fine. Kindly help. I have checked the all configuration are correct.

Fatal error:  Uncaught ElasticaExceptionConnectionHttpException: Couldn't connect to host, Elasticsearch down? in /data/docroot/magento/vendor/ruflin/elastica/lib/Elastica/Transport/Http.php:186
Stack trace:
#0 /data/docroot/magento/vendor/ruflin/elastica/lib/Elastica/Request.php(171): ElasticaTransportHttp->exec(Object(ElasticaRequest), Array)
#1 /data/docroot/magento/vendor/ruflin/elastica/lib/Elastica/Client.php(662): ElasticaRequest->send()
#2 /data/docroot/magento/vendor/ruflin/elastica/lib/Elastica/Search.php(461): ElasticaClient->request('elasticdata/...', 'GET', Array, Array)
#3 /data/docroot/magento/fetch_all_data.php(142): ElasticaSearch->search(Object(ElasticaQuery))
#4 {main}
  thrown in /data/docroot/magento/vendor/ruflin/elastica/lib/Elastica/Transport/Http.php on line 186

DreamProxies - Cheapest USA Elite Private Proxies 100 Private Proxies 200 Private Proxies 400 Private Proxies 1000 Private Proxies 2000 Private Proxies 5000 Private Proxies - Buy Cheap Private Proxies Buy 50 Private Proxies Buy 100 Private Proxies Buy 200 Private Proxies Buy 500 Private Proxies Buy 1000 Private Proxies Buy 2000 Private Proxies New Proxy Lists Every Day Buy Cheap Private Proxies; Best Quality USA Private Proxies