I need to extend ApacheSolrFacetapiAdapter, which is easy enough to do by implementing hook_facetapi_adapters to provide my own adapter with a class extending ApacheSolrFacetapiAdapter and then using hook_facetapi_searcher_info_alter like so:
if ($info['adapter'] === 'apachesolr') {
$info['adapter'] = 'my_adapter';
}
The problem is, that apachesolr_facetapi_facet_info does this:
if ('apachesolr' == $searcher_info['adapter']) {
When it should really do this:
if ('apachesolr' == $searcher_info['module']) {
Because, otherwise when I try to use my own extending adapter, all the facets disappear.
The 'adapter' key should be changeable, whereas there is no reason to wish to modify the module key.
I'd love to make a patch, but I'm all out of git at the moment :(
Comments
Comment #1
johnennew commentedHere is the patch @Angry Dan failed to provide when logging this issue!
I'm going to go out on a limb and set it straight to RTCB since he did everything but provide the patch and as far as I am concerned this just solved the issue and fix as described.
Comment #3
japerry