Class: AgnosticBackend::Queryable::Elasticsearch::ResultSet
- Includes:
- Utilities
- Defined in:
- lib/agnostic_backend/queryable/elasticsearch/result_set.rb
Instance Attribute Summary
Attributes inherited from ResultSet
Instance Method Summary collapse
Methods included from Utilities
Methods inherited from ResultSet
#each, #empty?, #initialize, #offset
Constructor Details
This class inherits a constructor from AgnosticBackend::Queryable::ResultSet
Instance Method Details
#scroll_cursor ⇒ Object
11 12 13 |
# File 'lib/agnostic_backend/queryable/elasticsearch/result_set.rb', line 11 def scroll_cursor raw_results["_scroll_id"] end |
#total_count ⇒ Object
7 8 9 |
# File 'lib/agnostic_backend/queryable/elasticsearch/result_set.rb', line 7 def total_count raw_results["hits"]["total"] end |