Method: Elasticated::Results#append

Defined in:
lib/elasticated/results.rb

#append(another_results) ⇒ Object



40
41
42
43
44
45
# File 'lib/elasticated/results.rb', line 40

def append(another_results)
  self.documents = documents + another_results.documents
  self.aggregations = another_results.aggregations if another_results.aggregations
  self.scroll_id = another_results.scroll_id if another_results.scroll_id
  self
end