We are getting issues related to index_not_found_exception and resource_already_exists_exception errors related to elasticsearch in the system.log file in our Magento application and due to this products are being disappeared from the category and search listing page.
But after deleting all indexes of elasticsearch alias and again if we run the indexer command php bin/magento indexer:reindex catalogsearch_fulltext manually then it generates only one alias and products started showing properly on frontend.
Below errors are coming when Magento group indexes are run by cron.
CRITICAL: Elasticsearch\Common\Exceptions\Missing404Exception: {"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index [productionmagento2_product_1_v24]","index_uuid":"m6vXUaRxQsKbgHO-FTbuWA","index":"productionmagento2_product_1_v24"}],"type":"index_not_found_exception","reason":"no such index [productionmagento2_product_1_v24]","index_uuid":"m6vXUaRxQsKbgHO-FTbuWA","index":"productionmagento2_product_1_v24"},"status":404} in /var/www/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php:685
We observe that this error comes only when the catalogsearch_fulltext indexer is run by cron.
Our indexer mode has set up Update on Schedule.
Also, at the time of creating indexes on Elasticsearch, it creates the multiple indexes alias on the Elasticsearch server.
We have currently 95K products in our Magento store.
Thanks in advance.
Hello @vikasp3che07bd
It's recommended to check your Magento and Elasticsearch configurations thoroughly to ensure they are properly aligned. Additionally, consider monitoring your Elasticsearch logs for any relevant error messages that could provide further insight into the issue.
If the problem persists, you may need to investigate further or seek assistance from a Magento developer or Elasticsearch expert to diagnose and resolve the Elasticsearch indexing issues specific to your environment.