Commit 56c5ca78 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Update OAI

parent 7fdf0685
......@@ -13,4 +13,4 @@ kubectl delete configmap prod-documents-index
kubectl create configmap prod-documents-index --from-literal ELASTIC_INDEX="documents-v21"
kubectl delete configmap prod-edm-index
kubectl create configmap prod-edm-index --from-literal ELASTIC_INDEX="oai-v3"
\ No newline at end of file
kubectl create configmap prod-edm-index --from-literal ELASTIC_INDEX="oai-v9"
\ No newline at end of file
from simple_elastic import ElasticIndex
if __name__ == '__main__':
backup_index = ElasticIndex('record-sets-v7', url='localhost:8081')
prod_index = ElasticIndex('record-sets-v7', url='localhost:8080')
for item in prod_index.scroll():
backup_index.bulk(item, identifier_key='id', keep_id_key=True)
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment