Class: Chewy::Search::Parameters::Rescore
- Defined in:
- lib/chewy/search/parameters/rescore.rb
Overview
Stores data as an array of hashes, exactly the same way
ES requires rescore
to be provided.
Instance Attribute Summary
Attributes inherited from Storage
Instance Method Summary collapse
-
#update!(other_value) ⇒ Array<Hash>
Adds new data to the existing data array.
Methods inherited from Storage
#==, #initialize, #merge!, #render, #replace!
Constructor Details
This class inherits a constructor from Chewy::Search::Parameters::Storage
Instance Method Details
#update!(other_value) ⇒ Array<Hash>
Adds new data to the existing data array.
17 18 19 |
# File 'lib/chewy/search/parameters/rescore.rb', line 17 def update!(other_value) @value = value | normalize(other_value) end |