Module: Chewy::Query::Pagination
- Included in:
- Chewy::Query
- Defined in:
- lib/chewy/query/pagination.rb
Instance Method Summary collapse
-
#total ⇒ Object
(also: #total_count, #total_entries)
Returns request total found documents count.
Instance Method Details
#total ⇒ Object Also known as: total_count, total_entries
Returns request total found documents count
PlacesIndex.query(...).filter(...).total
8 9 10 |
# File 'lib/chewy/query/pagination.rb', line 8 def total _response['hits'].try(:[], 'total') || 0 end |