Module: Search::SolrDocument::InstanceMethods

Defined in:
lib/solr/search.rb

Instance Method Summary collapse

Instance Method Details

#to_indexObject



22
23
24
25
26
27
28
# File 'lib/solr/search.rb', line 22

def to_index
  attrs = {'id' => self._id}
  self.metaclass.keys.each_pair do |name, key|
    attrs.merge!(name => self[name]) if key.options[:fulltext]
  end
  attrs
end