Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ericlondon/rails-4-elasticsearch-dynamic-facets
Rails 4 ElasticSearch integration with dynamic facets
https://github.com/ericlondon/rails-4-elasticsearch-dynamic-facets
dynamic elasticsearch facet form rails ruby
Last synced: 2 months ago
JSON representation
Rails 4 ElasticSearch integration with dynamic facets
- Host: GitHub
- URL: https://github.com/ericlondon/rails-4-elasticsearch-dynamic-facets
- Owner: EricLondon
- Created: 2014-09-03T02:25:07.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-06-25T17:00:26.000Z (7 months ago)
- Last Synced: 2024-06-25T18:53:05.773Z (7 months ago)
- Topics: dynamic, elasticsearch, facet, form, rails, ruby
- Language: Ruby
- Homepage: http://ericlondon.com/2014/09/02/rails-4-elasticsearch-integration-with-dynamic-facets-and-filters-via-model-concern.html
- Size: 63.5 KB
- Stars: 16
- Watchers: 6
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
== README
App Prereqs:
1. [Java 7](http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html)
1. JRuby
* via [RVM](http://rvm.io/)
* Install RVM: `curl -sSL https://get.rvm.io | bash -s stable`
* Install latest JRuby: `rvm install jruby`
1. Elasticsearch
* via [Homebrew](http://brew.sh/)
* Install Homebrew: `ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"`
* Install Elasticsearch: `brew install elasticsearch`
* Start Elasticsearch: `elasticsearch --config=/usr/local/opt/elasticsearch/config/elasticsearch.yml`
1. Rails setup (development mode)
* `bundle install`
* `rake db:migrate`
* `rake db:seed`
* `rails s`Optional/Misc:
1. Homebrew cellar directory (/usr/local/Cellar): `brew config | grep -i ^HOMEBREW_CELLAR | awk '{print $2}'`
1. Install Elasticsearch head plugin
* Plugins dir (/usr/local/var/lib/elasticsearch/plugins/): `brew info elasticsearch | grep -i ^Plugins: | awk '{print $2}'`
* Elasticsearch dir (/usr/local/Cellar/elasticsearch/1.3.2): `brew info elasticsearch | head -3 | tail -1 | awk '{print $1}'`
* cd /usr/local/Cellar/elasticsearch/1.3.2 && bin/plugin -install mobz/elasticsearch-head
* Browse to: http://localhost:9200/_plugin/head/