public function execute() { $numberOfResults = $this->search->getNumberOfResults(); $query = $this->search->getQuery(); $rawQueryTerms = $query->getKeywordsRaw(); $queryTerms = $query->getKeywordsCleaned(); $searchedFor = strtr($this->parentPlugin->pi_getLL('results_searched_for'), array('@searchWord' => '<span class="tx-solr-search-word">' . $queryTerms . '</span>')); $foundResultsInfo = strtr($this->parentPlugin->pi_getLL('results_found'), array('@resultsTotal' => $this->search->getNumberOfResults(), '@resultsTime' => $this->search->getQueryTime())); return array('searched_for' => $searchedFor, 'query' => $queryTerms, 'query_urlencoded' => rawurlencode($rawQueryTerms), 'query_raw' => $rawQueryTerms, 'found' => $foundResultsInfo, 'range' => $this->getPageBrowserRange(), 'count' => $this->search->getNumberOfResults(), 'offset' => $this->search->getResultOffset() + 1, 'query_time' => $this->search->getQueryTime(), 'pagebrowser' => $this->getPageBrowser($numberOfResults), 'filtered' => $this->isFiltered(), 'filtered_by_user' => $this->isFilteredByUser(), 'loop_result_documents|result_document' => $this->getResultDocuments()); }