jonbwhite / elkuent

Elasticsearch ORM for Laravel
7 stars 0 forks source link

Calling count() on a query builder fails #3

Closed jasonjlock closed 9 years ago

jasonjlock commented 9 years ago

Fixes #2

Calling count() on a returned query builder fails because there is no aggregate key in the returned results. Until aggregate search results are supported return the total number of results by calling count on the results.