- update the script that loads data to ES, to support data encoded with utf8 (#742)

This commit is contained in:
Jo
2021-07-23 01:10:38 +02:00
committed by GitHub
parent 3625c855ae
commit cf4517c1c2
+1 -1
View File
@@ -92,7 +92,7 @@ def gendata(data):
# create index
es.indices.create(index=index_name, body=settings, request_timeout=90)
with open(sys.argv[1]) as fh:
with open(sys.argv[1], encoding='utf-8') as fh:
d = json.load(fh)
# call generator function to yield features into ES build API