Aggiornare 'dnet-ariadneplus/src/main/resources/es/port.py'

This commit is contained in:
Miriam Baglioni 2021-01-08 16:52:26 +01:00
parent 060f7f8673
commit 472ee2754c
1 changed files with 1 additions and 1 deletions

View File

@ -9,4 +9,4 @@ s = Search(using=es_ariadnetest, index=index_name).query(Q('match_all'))
es_ariadne = Elasticsearch(hosts = [{'host':'elastic.ariadne.d4science.org', 'port':9200}]) es_ariadne = Elasticsearch(hosts = [{'host':'elastic.ariadne.d4science.org', 'port':9200}])
for entry in s.scan(): for entry in s.scan():
es_ariadne.index(index=index_name, id=entry.__dict__['meta']['id'], body=entry.__dict__['_d']) es_ariadne.index(index=index_name, id=entry.__dict__['meta']['id'], body=entry.__dict__['_d_'])