Created
July 1, 2012 06:02
-
-
Save giosakti/3027051 to your computer and use it in GitHub Desktop.
[RoR] Steps on using Elastic Search for a RoR project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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