/** * Encodes the facet option values from raw Lucene queries to values that * can be easily used in rendering instructions and URL generation. * * (non-PHPdoc) * @see Tx_Solr_Facet_AbstractFacetRenderer::getFacetOptions() */ public function getFacetOptions() { $facetOptions = array(); $facetOptionsRaw = parent::getFacetOptions(); $filterEncoder = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('Tx_Solr_Query_FilterEncoder_QueryGroup'); foreach ($facetOptionsRaw as $facetOption => $numberOfResults) { $facetOption = $filterEncoder->encodeFilter($facetOption, $this->facetConfiguration); $facetOptions[$facetOption] = $numberOfResults; } return $facetOptions; }
/** * Encodes the facet option values from raw Lucene queries to values that * can be easily used in rendering instructions and URL generation. * * (non-PHPdoc) * @see Tx_Solr_Facet_AbstractFacetRenderer::getFacetOptions() */ public function getFacetOptions() { $facetOptions = array(); $facetOptionsRaw = parent::getFacetOptions(); $filterEncoder = GeneralUtility::makeInstance('ApacheSolrForTypo3\\Solr\\Query\\FilterEncoder\\QueryGroup'); foreach ($facetOptionsRaw as $facetOption => $numberOfResults) { $facetOption = $filterEncoder->encodeFilter($facetOption, $this->facetConfiguration); $facetOptions[$facetOption] = $numberOfResults; } return $facetOptions; }