Created
January 19, 2012 02:39
-
-
Save starrhorne/1637340 to your computer and use it in GitHub Desktop.
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
# app/models/job.rb | |
class Job | |
# job.specializations will hold an array of strings | |
# like this: ['rails', 'javascript'] | |
serialize :specializations, Array | |
# Solr will index each element of the array separately | |
searchable do | |
string :specializations, :multiple => true | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment