Commit b7e7bd4035028443d255ce08ff8b02f9d8a23cdf
Committed by
Macartur Sousa
1 parent
792af01b
Exists in
elasticsearch_sort
Updating Readme
Showing
1 changed file
with
35 additions
and
22 deletions
Show diff stats
plugins/elasticsearch/README.md
| 1 | Elasticsearch Plugin | 1 | Elasticsearch Plugin |
| 2 | ==================== | 2 | ==================== |
| 3 | 3 | ||
| 4 | -Atualmente estamos executando o elasticsearch na branch: elasticsearch | ||
| 5 | - | ||
| 6 | -Estamos utilizando a versão mais recente do elasticsearch, versão: 2.3.1 | ||
| 7 | - | ||
| 8 | -Link para download: https://www.elastic.co/downloads/elasticsearch | ||
| 9 | - | ||
| 10 | -Passos para executar o Noosfero com o elasticsearch | ||
| 11 | - | ||
| 12 | -- Instale o elasticsearch | ||
| 13 | -- Inicializar o serviço do elasticsearch | ||
| 14 | -- Instalar as gem's do plugin. Caso tenha problemas com esse passoi, copie | ||
| 15 | - as gem's do Gemfile do plugin para o core e execute o comando 'bundle install' | ||
| 16 | -- Habilitar o plugin do elasticsearch | ||
| 17 | -- Confira se executou o comando 'rake db:test:prepare' para preparar o banco | ||
| 18 | - de dados para testes | ||
| 19 | -- Execute o teste unitário 'index_models_test.rb' para verificar se as | ||
| 20 | - models do Noosfero foram indexadas no elasticsearch | ||
| 21 | -- Popule o banco de dados com Person, Community e Article, se quiser | ||
| 22 | - apenas execute o script sample-profiles do core do Noosfero | ||
| 23 | -- Rode o servidor do Noosfero | ||
| 24 | -- Acesse o link 'http://localhost:3000/plugin/elasticsearch/search' | ||
| 25 | -- O link citado acima se trata da pagina de busca utilizando o elasticsearch | 4 | +Elasticsearch is as plugin to run searchs in noosfero through elasticsearch. |
| 5 | + | ||
| 6 | +The Version used is 1.7.5 due compatibility problems with gems and new versions. | ||
| 7 | + | ||
| 8 | +Download: https://www.elastic.co/downloads/past-releases/elasticsearch-1-7-5 | ||
| 9 | + | ||
| 10 | +INSTALL | ||
| 11 | +======= | ||
| 12 | + | ||
| 13 | +Install dependencies | ||
| 14 | + | ||
| 15 | +Install elasticsearch package and start service. | ||
| 16 | +By default, the service runs on port 9200 | ||
| 17 | + | ||
| 18 | +Enable plugin | ||
| 19 | +------------- | ||
| 20 | + | ||
| 21 | +Execute the command to enable Elasticsearch Plugin at your noosfero: | ||
| 22 | + | ||
| 23 | +./script/noosfero-plugins enable elasticsearch | ||
| 24 | + | ||
| 25 | +Active plugin | ||
| 26 | +------------- | ||
| 27 | + | ||
| 28 | +As a Noosfero administrator user, go to administrator panel: | ||
| 29 | + | ||
| 30 | +- Click on "Enable/disable plugins" option | ||
| 31 | +- Click on "Elasticsearch" check-box | ||
| 32 | + | ||
| 33 | +DEVELOPMENT | ||
| 34 | +=========== | ||
| 35 | + | ||
| 36 | +To run tests for Elasticsearch: | ||
| 37 | + | ||
| 38 | +Use rspec command |