-
Notifications
You must be signed in to change notification settings - Fork 125
Reindexing data
biggiesmallsAG edited this page Jul 16, 2016
·
2 revisions
When we release new mapping updates its imperative that data is reindexed. Its much easier on the system to reindex your existing data than to re-upload everything again (which is not efficient). We built a python helper utility to do this for you. It will take the current index, latest mappings and do the following;
- Build you a new index with the new mappings
- Remove the alias from the old index and point it to the new index
- Reindex your data from the previous index into the new index, allowing the new mappings to be used correctly.
Before you start:
- Make sure the machine is connected to the internet.
- Make sure that you have updated to the latest source build via
yum check-update
thenyum update nighthawk
. This will get you the latest mappings/source code to operate nighthawk at the latest version
How do you use it?
- SSH into the machine
- Execute
/opt/nighthawk/bin/reindex.py
- Sit back and wait for the data to move over (could take a while depending on the size of your previous index)