Class: AgnosticBackend::Queryable::Elasticsearch::ResultSet

Inherits:
ResultSet
  • Object
show all
Includes:
Utilities
Defined in:
lib/agnostic_backend/queryable/elasticsearch/result_set.rb

Instance Attribute Summary

Attributes inherited from ResultSet

#query, #raw_results

Instance Method Summary collapse

Methods included from Utilities

included

Methods inherited from ResultSet

#each, #empty?, #initialize, #offset

Constructor Details

This class inherits a constructor from AgnosticBackend::Queryable::ResultSet

Instance Method Details

#scroll_cursorObject



11
12
13
# File 'lib/agnostic_backend/queryable/elasticsearch/result_set.rb', line 11

def scroll_cursor
  raw_results["_scroll_id"]
end

#total_countObject



7
8
9
# File 'lib/agnostic_backend/queryable/elasticsearch/result_set.rb', line 7

def total_count
  raw_results["hits"]["total"]
end