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:

elasticsearch:
    hostname: elasticsearch.magento2.docker
    image: 'magento/magento-cloud-docker-elasticsearch:7.7-1.2.3'
    ulimits:
      memlock:
        soft: -1
        hard: -1
    environment:
      - cluster.name=docker-cluster,
      - bootstrap.memory_lock=true
    networks:
      magento:
        aliases:
          - 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         0.0.0.0:8050->80/tcp, 0.0.0.0:9050->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         0.0.0.0:9200->9200/tcp, 0.0.0.0:9300->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

{"size":24,"sort":[{"cf_new":{"order":"desc","missing":"_first","unmapped_type":"keyword"}},{"name.sortable":{"order":"ASC","missing":"_first","unmapped_type":"keyword"}},{"_score":{"order":"asc"}},{"entity_id":{"order":"asc","missing":"_last","unmapped_type":"keyword"}}],"from":0,"query":{"constant_score":{"filter":{"bool":{"must":[{"nested":{"path":"category","score_mode":"none","query":{"bool":{"must":[{"bool":{"must_not":[{"term":{"category.is_virtual":{"value":true,"boost":1}}}],"boost":1}},{"terms":{"category.category_id":["3"],"boost":1}}],"must_not":[],"should":[],"boost":1}},"boost":1}},{"term":{"stock.is_in_stock":{"value":true,"boost":1}}},{"terms":{"visibility":[2,4],"boost":1}},{"bool":{"must_not":[{"nested":{"path":"category","score_mode":"none","query":{"bool":{"must":[{"term":{"category.category_id":{"value":3,"boost":1}}},{"term":{"category.is_blacklisted":{"value":true,"boost":1}}}],"must_not":[],"should":[],"boost":1}},"boost":1}}],"boost":1}},{"terms":{"visibility":[3,4],"boost":1}}],"must_not":[],"should":[],"boost":1}},"boost":1}},"post_filter":{"terms":{"option_text_cf_colour.untouched":["Black"],"boost":1}},"aggregations":{"attribute_set_id":{"filter":{"terms":{"option_text_cf_colour.untouched":["Black"],"boost":1}},"aggregations":{"attribute_set_id":{"terms":{"field":"attribute_set_id","size":100000,"order":{"_count":"desc"}}}}},"categories":{"filter":{"terms":{"option_text_cf_colour.untouched":["Black"],"boost":1}},"aggregations":{"categories":{"filters":{"filters":{"9":{"nested":{"path":"category","score_mode":"none","query":{"bool":{"must":[{"bool":{"must_not":[{"term":{"category.is_virtual":{"value":true,"boost":1}}}],"boost":1}},{"terms":{"category.category_id":["9"],"boost":1}}],"must_not":[],"should":[],"boost":1}},"boost":1}},"10":{"nested":{"path":"category","score_mode":"none","query":{"bool":{"must":[{"bool":{"must_not":[{"term":{"category.is_virtual":{"value":true,"boost":1}}}],"boost":1}},{"terms":{"category.category_id":["10"],"boost":1}}],"must_not":[],"should":[],"boost":1}},"boost":1}},"30":{"nested":{"path":"category","score_mode":"none","query":{"bool":{"must":[{"bool":{"must_not":[{"term":{"category.is_virtual":{"value":true,"boost":1}}}],"boost":1}},{"terms":{"category.category_id":["30"],"boost":1}}],"must_not":[],"should":[],"boost":1}},"boost":1}}}}}}},"option_text_cf_category":{"filter":{"terms":{"option_text_cf_colour.untouched":["Black"],"boost":1}},"aggregations":{"option_text_cf_category":{"terms":{"field":"option_text_cf_category.untouched","size":10,"order":{"_count":"desc"}}}}},"option_text_cf_search_cat":{"filter":{"terms":{"option_text_cf_colour.untouched":["Black"],"boost":1}},"aggregations":{"option_text_cf_search_cat":{"terms":{"field":"option_text_cf_search_cat.untouched","size":10,"order":{"_count":"desc"}}}}},"option_text_cf_materials_filter":{"filter":{"terms":{"option_text_cf_colour.untouched":["Black"],"boost":1}},"aggregations":{"option_text_cf_materials_filter":{"terms":{"field":"option_text_cf_materials_filter.untouched","size":10,"order":{"_count":"desc"}}}}},"option_text_cf_design":{"filter":{"terms":{"option_text_cf_colour.untouched":["Black"],"boost":1}},"aggregations":{"option_text_cf_design":{"terms":{"field":"option_text_cf_design.untouched","size":10,"order":{"_count":"desc"}}}}},"option_text_cf_technique_filter":{"filter":{"terms":{"option_text_cf_colour.untouched":["Black"],"boost":1}},"aggregations":{"option_text_cf_technique_filter":{"terms":{"field":"option_text_cf_technique_filter.untouched","size":10,"order":{"_count":"desc"}}}}},"option_text_cf_colour":{"terms":{"field":"option_text_cf_colour.untouched","size":100000,"order":{"_count":"desc"}}}},"track_total_hits":true}

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 https://www.emizentech.com/blog/magento-2-4-with-elasticsearch-complete-guide.html

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

/etc/elasticsearch/elasticsearch.yml

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 - https://artifacts.elastic.co/GPG-KEY-elasticsearch | 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 https://artifacts.elastic.co/packages/7.x/apt 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/"
</VirtualHost>

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

{"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":1,"active_shards":1,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":1,"delayed_unassigned_shards":0,"number_of_pending_tasks":0,"number_of_in_flight_fetch":0,"task_max_waiting_in_queue_millis":0,"active_shards_percent_as_number":50.0}

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 ExtraProxies.com - 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 ProxiesLive.com Proxies-free.com New Proxy Lists Every Day Proxies123.com Buy Cheap Private Proxies; Best Quality USA Private Proxies