Module: MongoMapper::Search::InstanceMethods
- Defined in:
- lib/mongomapper_search/search.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#index_keywords! ⇒ Object
Indexes the document keywords.
Instance Method Details
#index_keywords! ⇒ Object
Indexes the document keywords
144 145 146 147 148 149 150 151 152 153 154 155 156 |
# File 'lib/mongomapper_search/search.rb', line 144 def index_keywords! self.search_fields.each do |key, value| if key.class == Hash key.each do |sub_key, sub_value| set_search_field key end else set_search_field key end end save true end |