Method: Sunspot::JoinField#initialize
- Defined in:
- lib/sunspot/field.rb
#initialize(name, type, options = {}) ⇒ JoinField
Returns a new instance of JoinField.
200 201 202 203 204 205 206 207 208 209 210 211 212 213 |
# File 'lib/sunspot/field.rb', line 200 def initialize(name, type, = {}) @multiple = !!.delete(:multiple) super(name, type, ) @prefix = .delete(:prefix) @join = .delete(:join) @clazz = .delete(:clazz) @target = .delete(:target) @default_boost = .delete(:default_boost) @joined = true () end |