From cb35c946ebae933b3416ce2a38a3f1dbfdc4d8a5 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sat, 18 Oct 2014 09:59:19 +0200 Subject: [PATCH] Added es read me. --- README_elasticsearch.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 README_elasticsearch.md diff --git a/README_elasticsearch.md b/README_elasticsearch.md new file mode 100644 index 000000000..32a1951b1 --- /dev/null +++ b/README_elasticsearch.md @@ -0,0 +1,18 @@ +# Setup a elastic search + +* Install elastic search + +* Install attachment plugin + cd /usr/share/elasticsearch + bin/plugin -install elasticsearch/elasticsearch-mapper-attachments/2.0.0 + +* Configure elastic search + + * rails r "Setting.set('es_url', 'http://172.0.0.1:9200')" + * rails r "Setting.set('es_user', 'elasticsearch')" # optional + * rails r "Setting.set('es_password', 'zammad')" # optional + * rails r "Setting.set('es_index', Socket.gethostname + '_zammad')" # optional + +* Create elastic search indexes + * rake searchindex:rebuild # drop/create/reload +