A script for copying editorial autocomplete, connector configurations, editorial didyoumean, synonyms and unified weights from one index to another.
Be sure to verify that everything looks ok after each step since this script is not that well tested.
Requests (pip install requests)
Should work with python >= 2.7. The script uses a config file (config.json) that looks like this:
{
"old_index_client_url": "https:<PROXY_URL>/<PRIVATE_KEY_1>/<INDEX_NAME_1>/", // This is from where the settings will be copied.
"new_index_client_url": "https:<PROXY_URL>/<PRIVATE_KEY_2>/<INDEX_NAME_2>/", // This is where the settings will be copied to.
"time": "1561360096.23" // Don't touch this
}- Edit config.json as described above.
- Run dump_all.py to download all data.
- Do a (manual) sanity check on the generated file downloaded_.json and validate that the settings has been downloaded ok.
- Run push_all.py