Commit ea2fc2af authored by Alessandro CERIONI's avatar Alessandro CERIONI
Browse files

Deleting the destination index before reindexation.

parent f9e596bd
...@@ -23,11 +23,11 @@ def reindexer(cfg): ...@@ -23,11 +23,11 @@ def reindexer(cfg):
# t1 = time.time() # t1 = time.time()
# try: try:
# rep = destination_es.indices.delete(cfg['reindexer']['destination_index']) rep = destination_es.indices.delete(cfg['reindexer']['destination_index'])
# print(rep) #print(rep)
# except: except:
# pass pass
try: try:
rep = destination_es.indices.create(cfg['reindexer']['destination_index']) rep = destination_es.indices.create(cfg['reindexer']['destination_index'])
......
Markdown is supported
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