[TYPO3-Solr] Pagebrowse problem when using & in facet name

Albert van der Veen albert.van.der.veen at xs4all.nl
Thu Nov 1 13:36:09 CET 2012


Hi all,

For your information: Using a & in a facet option (like 'Oil & vinegar') 
produces a message 'no results found for "' when clicking through the 
search results. First click on 'next' still gives a page with results, 
next gives the message nothing was found.

The problem lies in the pagebrowse extension (or in the way solr encodes 
the url params?), which has the following line of code in 
class.tx_pagebrowse_pi1.php:

$additionalParams = urldecode($this->cObj->getQueryArguments($queryConf));

Removing the urldecode fixes the problem.

The reason solr returns no results when clicking through is the facet 
part of the url is encoded like this Oil%2B&%2Bvinegar (which stands 
for Oil+&+vinegar) in the pagebrowse links, where it should be: 
Oil%2B%26%2Bvinegar.

Best,
Albert


More information about the TYPO3-project-solr mailing list