Added es read me.

This commit is contained in:
Martin Edenhofer 2014-10-18 09:59:19 +02:00
parent be86326098
commit cb35c946eb

18
README_elasticsearch.md Normal file
View file

@ -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