Elastica\Type\AbstractType::count PHP Метод

count() публичный Метод

Count docs in the type based on query.
См. также: Elastica\SearchableInterface::count
public count ( string | array | Query $query = '' ) : integer
$query string | array | Elastica\Query Array with all query data inside or a Elastica\Query object
Результат integer number of documents matching the query
    public function count($query = '')
    {
        return $this->getType()->count($query);
    }