Adds initialize_elasticsearch script to configurate the ES index

This commit is contained in:
J 2019-09-16 17:45:24 +02:00
parent 08b84b97a6
commit c29de7faf2
2 changed files with 11 additions and 0 deletions

6
.idea/vcs.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

View File

@ -0,0 +1,5 @@
from src.utils.elasticsearch_utils import ElasticSearchUtils
if __name__ == "__main__":
ElasticSearchUtils.remove_index()
ElasticSearchUtils.create_index()