Skip to content
Mohamed El Mahallawy edited this page Nov 20, 2015 · 1 revision

Install

brew install elasticsearch

Plugins

Are needed for indexing and debugging.

sudo /usr/local/opt/elasticsearch/bin/plugin -install WHATEVER PLUGIN YOU NEED

Example

sudo /usr/local/opt/elasticsearch/bin/plugin -install mobz/elasticsearch-head

To run: Open in browser http://localhost:9200/_plugin/head/

If you’ve installed the .deb package, then the plugin exectuable will be available at /usr/share/elasticsearch/bin/plugin.

Plugins needed: mobz/elasticsearch-head - web portal, open http://localhost:9200/_plugin/head/ elasticsearch/elasticsearch-analysis-icu - for indexing lukas-vlcek/bigdesk - shows graphs karmi/elasticsearch-paramedic - I don't know.

Starting

To run elasticsearch, in bash paste: Note: If you brew installed, this is done automatically

elasticsearch --config=/usr/local/opt/elasticsearch/config/elasticsearch.yml

or

elasticsearch

Initial setup

You need to have the prober files in place for elasticsearch's arabic indexing. Run task:

rake elasticsearch:setup_files

which will copy the files from your config for elasticsearch and only your elasticsearch local directory.

Indexing

Run: rake elasticsearch:setup_indices

To delete: rake elasticsearch:delete_indices

To setup individual, go into rails console and run it for that model Content::Translation.setup_index

Seeing Indices

http://localhost:9200/_cat/indices?v

Indices or routing? (RoutingMissingException)

* Delete the index
* http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-delete-index.html

Mappings

In browser: http://localhost:9200/quran/_mapping

FAQ

I got a Groovy error Follow this: https://discuss.elastic.co/t/scripts-of-type-inline-operation-aggs-and-lang-groovy-are-disabled/2493

Simpy add script.engine.groovy.inline.aggs: on to your elasticsearch.yml