Updated README
authorThierry Florac <thierry.florac@onf.fr>
Fri, 09 Jun 2017 17:45:48 +0200
changeset 4 74eeb0a982b6
parent 3 ed80ac5fcbbf
child 5 f92dea2a949c
Updated README
{{cookiecutter.project_slug}}/docs/README.txt
--- a/{{cookiecutter.project_slug}}/docs/README.txt	Fri Jun 09 15:35:30 2017 +0200
+++ b/{{cookiecutter.project_slug}}/docs/README.txt	Fri Jun 09 17:45:48 2017 +0200
@@ -1,8 +1,14 @@
 This directory contains Elasticsearch index and mappings settings.
 
+To delete your previous index version:
+- curl -XDELETE {{ cookiecutter.elasticsearch_server }}/{{ cookiecutter.elasticsearch_index }}
+
 To initialize your index, just do:
 - curl -XPUT {{ cookiecutter.elasticsearch_server }}/_ingest/pipeline/attachment -d @attachment-pipeline.json
 - curl -XPUT {{ cookiecutter.elasticsearch_server }}/{{ cookiecutter.elasticsearch_index }} -d @index-settings.json
 - curl -XPUT {{ cookiecutter.elasticsearch_server }}/{{ cookiecutter.elasticsearch_index }}/WfNewsEvent/_mapping -d @mappings/WfNewsEvent.json
 - curl -XPUT {{ cookiecutter.elasticsearch_server }}/{{ cookiecutter.elasticsearch_index }}/WfBlogPost/_mapping -d @mappings/WfBlogPost.json
 - curl -XPUT {{ cookiecutter.elasticsearch_server }}/{{ cookiecutter.elasticsearch_index }}/WfImageMap/_mapping -d @mappings/WfImageMap.json
+
+To feed your index with previous contents:
+- ./bin/pyams_es_index etc/production.ini