# HG changeset patch # User Thierry Florac # Date 1497023148 -7200 # Node ID 74eeb0a982b6eb19c1b603e9711e7e56ce3cb8c7 # Parent ed80ac5fcbbf1d6cf024ab9cede86ab75a008365 Updated README diff -r ed80ac5fcbbf -r 74eeb0a982b6 {{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