/** * Returns the number of results. * * @return integer The number of results. */ function getNbResults() { $this->sphinx->SetLimits(1, 1, $this->options['max_results']); $results = $this->sphinx->searchEx($this->query, $this->options['entity']); return $results['total_found']; }