Created
March 7, 2012 00:48
-
-
Save ruprict/1990160 to your computer and use it in GitHub Desktop.
Mike Pack Solr Article 2
This file contains 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
class Product < ActiveRecord::Base | |
searchable do | |
text :name, :boost => 2.0 | |
text :color | |
boolean :used | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is the semi colon on line 3 a typo? Or is that part of the DSL?