0

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.

1
  • we have over 300k products and it takes about 5 min to reindex. what is your server config!? Commented Jul 20, 2021 at 18:47

1 Answer 1

0

I found out that the index is specified by an alias in the actual query: magento2_product_1 in our case, which points to the current actual index: magento2_product_1_v38.

I can see the indexes by running this curl statement:

curl -X GET "localhost:9200/_cat/aliases?v=true&pretty"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.