ref: master
plugins/elasticsearch/README.md
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
Elasticsearch Plugin ==================== Elasticsearch is as plugin to run searchs in noosfero through elasticsearch. The Version used is 1.7.5 due compatibility problems with gems and new versions. Download: https://www.elastic.co/downloads/past-releases/elasticsearch-1-7-5 INSTALL ======= Install elasticsearch and openjdk-7-jdk. $ cd plugins/elasticsearch $ rake install After install start the service, by default, the service runs on port 9200. Install gems listed in plugin Gemfile. $ cd plugins/elasticsearch $ bundle install If this step fail, just copy the gems to core Gemfile and run the command 'bundle install'. Enable plugin ------------- Execute the command to enable Elasticsearch Plugin at your noosfero: ``sh $ ./script/noosfero-plugins enable elasticsearch `` Active plugin ------------- As a Noosfero administrator user, go to administrator panel: - Click on "Enable/disable plugins" option - Click on "Elasticsearch" check-box DEVELOPMENT =========== To run tests for Elasticsearch: - All elasticsearch Tests: ``` $ rake test:noosfero_plugins:elasticsearch:units ``` - One Test: ``` $ rake test:units TEST=plugins/elasticsearch/test/unit/controllers/elasticsearch_plugin_controller_test.rb ``` |