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 +