Skip to content

Script that will automate update mappings and re indexing process using aliases.

Notifications You must be signed in to change notification settings

sats17/ElasticSearch-IndexMigrator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Generic badge Generic badge

ElasticSearch-IndexMigrator

Elastic search do not allow to update existing mappings, to overcome this issue, we have automated the steps in this script that elastic search has provided in this post and giving a single click solution.


  • Note: This script is tested on elastic search version 6.8

Prerequisites

language
  • Python 3+
libraries
  • requests
  • json

Required variables to run script

elasticSearchHost = Your elasticsearch host.
oldIndex = Your old index name.
newIndex = Your new index name.
mappingFilePath = Your correct mapping json that you will use to create new index.
alias = Your alias name that you want to relink from old index to new index.
isRemoveOldIndex = Boolean flag, it will decide after migration whether old index should be deleted or not.

About

Script that will automate update mappings and re indexing process using aliases.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages