Module: Search::SolrDocument::InstanceMethods
- Defined in:
- lib/solr/search.rb
Instance Method Summary collapse
Instance Method Details
#to_index ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/solr/search.rb', line 22 def to_index attrs = {'id' => self._id} self..keys.each_pair do |name, key| attrs.merge!(name => self[name]) if key.[:fulltext] end attrs end |