Class: Sunspot::Field::DynamicFieldInstance

Inherits:
Object
  • Object
show all
Includes:
FieldInstance
Defined in:
lib/sunspot/field.rb

Overview

This class represents actual dynamic fields as they are indexed in Solr. Thus, they have knowledge of the base name and dynamic name, type, etc.

Instance Method Summary collapse

Methods included from FieldInstance

#cast, #indexed_name, #to_indexed

Constructor Details

#initialize(base_name, dynamic_name, type, data_extractor, multiple) ⇒ DynamicFieldInstance

Returns a new instance of DynamicFieldInstance.



222
223
224
225
# File 'lib/sunspot/field.rb', line 222

def initialize(base_name, dynamic_name, type, data_extractor, multiple)
  @base_name, @dynamic_name, @type, @data_extractor, @multiple =
    base_name, dynamic_name, type, data_extractor, multiple
end