Fix elasticsearch index creation

This commit is contained in:
Sean Whalen committed 2019-04-23 12:24:56 -04:00
1 parent 6b3a51a3f0
commit a2998f3968
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -30,8 +30,8 @@ script:
- "cd .."
- "coverage run tests.py"
- "python setup.py install"
- "parsedmarc -c ci.ini samples/aggregate/*"
- "parsedmarc -c ci.ini samples/forensic/*"
- "parsedmarc --debug -c ci.ini samples/aggregate/*"
- "parsedmarc --debug -c ci.ini samples/forensic/*"
- "python setup.py sdist"
- "python setup.py bdist_wheel"
+1 -1
View File
@@ -211,7 +211,7 @@ def create_indexes(names, settings=None):
if settings is None:
settings = dict(number_of_shards=1,
number_of_replicas=1)
index.put_settings(settings)
index.put_settings(body=settings, preserve_existing=True)
index.create()
except Exception as e:
raise ElasticsearchError(