module SunspotCell::DSL::Fields::InstanceMethods

Public Instance Methods

attachment(*names) click to toggle source

Added an attachment field, the attachment filename is passed to Solr for indexing by tiqa

# File lib/sunspot_cell/dsl/fields.rb, line 16
def attachment(*names)
  options = names.pop if names.last.is_a?(Hash)
  names.each do |name|
    @setup.add_attachment_field_factory(name, options || {})
  end
end