Method: Elastictastic::Properties::ClassMethods#boost

Defined in:
lib/elastictastic/properties.rb

#boost(field, options = {}) ⇒ Object



69
70
71
# File 'lib/elastictastic/properties.rb', line 69

def boost(field, options = {})
  @_boost = { 'name' => field.to_s, 'null_value' => 1.0 }.merge(options.stringify_keys)
end