== README
demo application hosted on heroku: http://es-example.herokuapp.com/ INTRO
This is a small Ruby on Rails application that integrates elastic search. It's a simple products list page with different search features
List of features implemented:
- Full text search
- when searching, ajax updates of the list of products and highlights of the search key.
- faceted filtering
- pagination
View after searching for "camera":
To run the application, you'll need to include a database.yml file in the config directory
I have included a template named database.example.yml
Use it as a guide and change the settings according to your environment and be sure to save the file as database.yml
(If you're using sqlite3, just drop the .example and use as is)
Then start elastic search:
elasticsearch --config=/usr/local/opt/elasticsearch/config/elasticsearch.yml
In production, if Bonsai gives you an error about a missing products index, run:
heroku run bundle exec rake environment elasticsearch:import:model CLASS='Product' FORCE=true