Skip to content

Instantly share code, notes, and snippets.

@giosakti
Created July 1, 2012 06:02
Show Gist options
  • Save giosakti/3027051 to your computer and use it in GitHub Desktop.
Save giosakti/3027051 to your computer and use it in GitHub Desktop.
[RoR] Steps on using Elastic Search for a RoR project
1. install elastic search http://gist.github.com/3016441
2. include gem 'tire'
3. 'include Tire::Model::Search' dan 'include Tire::Model::Callbacks' di model yang mau dicari
4. jalankan rake db:setup untuk mengindex model yang sudah terlanjur masuk
5. buat search form dengan field query, panggil fungsi search di controller
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment