/** * Initializes the search component. * * Sets the debug query parameter * */ public function initializeSearchComponent() { $solrConfiguration = Util::getSolrConfiguration(); if ($solrConfiguration->getEnabledDebugMode()) { $this->query->setDebugMode(); } }
/** * Initializes the search component. * * */ public function initializeSearchComponent() { if ($this->searchConfiguration['results.']['showDocumentScoreAnalysis']) { $this->query->setDebugMode(); $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['solr']['modifyResultDocument']['scoreAnalysis'] = 'ApacheSolrForTypo3\\Solr\\ResultDocumentModifier\\ScoreAnalyzer'; $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['solr']['modifySearchForm']['queryAnalysis'] = 'ApacheSolrForTypo3\\Solr\\Plugin\\Results\\QueryAnalyzerFormModifier'; } }
/** * Enables the query's debug mode to get more detailed information. * * @param Query $query The query to modify * @return Query The modified query with enabled debugging mode */ public function modifyQuery(Query $query) { $query->setDebugMode(true); return $query; }