/** * Retrieve search result count * * @return string */ public function getResultCount() { if ($this->fallback) { return parent::getResultCount(); } if (!$this->getData('result_count')) { $query = $this->_getQuery(); $size = $this->hasSubPhrases() ? $this->p13nHelper->getSubPhraseTotalHitCount($this->queries[\Boxalino\Intelligence\Block\Product\BxListProducts::$number]) : $this->p13nHelper->getTotalHitCount(); $this->setResultCount($size); $query->saveNumResults($size); } return $this->getData('result_count'); }