Module: Eson::More::All::Functions
- Defined in:
- lib/eson/more/all.rb
Class Method Summary collapse
Class Method Details
.fetch_more_results(client, scroll_id) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/eson/more/all.rb', line 7 def self.fetch_more_results(client, scroll_id) result = client.scroll(:scroll_id => scroll_id, :scroll => "10m") scroll_id = result["_scroll_id"] results = client.extract_hits(result) scroll_id = nil if results.empty? return scroll_id, results end |