Syncing data between elasticsearch and the internal NewsAI context API.
- Syncing data from API and Elasticsearch without downtime:
- Have an alias pointing to index
entities_v1
- Create index
elastic_v2
, populate data, point alias to new index - Delete old index
entities_v1
- Have an alias pointing to index
pip install -r requirements.txt
, python sync.py
This command makes it run every 6 hours
nohup python scripts/reindex_elasticsearch.py &