Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
memoriav
Memobase 2020
utilities
Import Process CLI
Commits
56c5ca78
Commit
56c5ca78
authored
Jul 01, 2021
by
Jonas Waeber
Browse files
Update OAI
parent
7fdf0685
Changes
2
Show whitespace changes
Inline
Side-by-side
global-configs/prod/update.elastic-indices.sh
View file @
56c5ca78
...
...
@@ -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
utilities/elastic_scripts/copy_to_backup.py
0 → 100644
View file @
56c5ca78
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment