Nqxcode\LuceneSearch\Query\Builder::count PHP Метод

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

Execute the current query and return the total number of results.
public count ( ) : integer
Результат integer
    public function count()
    {
        $total = $this->runner->getCachedTotal($this->query);
        if (null === $total) {
            $total = $this->runner->total($this->query);
            $this->runner->setCachedTotal($this->query, $total);
        }
        return $total;
    }