Module: Chewy::Search::Parameters::HashStorage

Included in:
Aggs, Highlight, ScriptFields, Suggest
Defined in:
lib/chewy/search/parameters/concerns/hash_storage.rb

Overview

Stores hashes with stringified keys.

Instance Method Summary collapse

Instance Method Details

#update!(other_value) ⇒ {String => Object}

Simply merges two value hashes on update

Parameters:

  • other_value ({String, Symbol => Object})

    any acceptable storage value

Returns:

  • ({String => Object})

    updated value

See Also:



11
12
13
# File 'lib/chewy/search/parameters/concerns/hash_storage.rb', line 11

def update!(other_value)
  value.merge!(normalize(other_value))
end