- update the script that loads data to ES, to support data encoded with utf8 (#742)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user