FriendsOfSymfony/FOSElasticaBundle — pull request #748 by NinjDS (2014-11-26 15:42:29+00:00)
Title: Genuine ES behaviour for getTotalHits()

In response to the issue #746

This minor edit allows RawPaginatorAdapter::getTotalHits() to return the real total count (i.e. all matching documents).

By default, the total is limited to the size query parameter, which doesn't comply with elasticsearch api.

It is useful when you only need to count the number of documents that correspond to a given query, without actually retrieving any document.