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