Skip to content

Instantly share code, notes, and snippets.

@dbolser
Created August 15, 2012 16:55
Show Gist options
  • Save dbolser/3361564 to your computer and use it in GitHub Desktop.
Save dbolser/3361564 to your computer and use it in GitHub Desktop.
I've been playing with the 'apachesolr_examples' project [1] to get apachesolr [2] to search an 'external' (non-Drupal content derived) Solr index. This is working great, and even allows me to build facets for the fields of my choice, which show up nicely as blocks on the search page.
However, when I subsequently install the Current Search Blocks (CSB) module in the Facet API project, the CSB seems to 'clobber' the facet blocks. The blocks disappear from the admin/structure/block list (and from the search page). Weirdly, the facet config tab of the external index changes from listing only those facets defined in the code to the 'full' set of facetable fields in the 'default' apachesolr index schema.
[1] http://drupal.org/project/apachesolr_examples
[2] http://drupal.org/project/apachesolr
STEPS TO REPRODUCE
* Start with a new Drupal install.
* Download and install ctools
* Download and install facet_api
* Download the latest development version of apachesolr
* Download the latest development version of apachesolr_examples
* See the facet blocks. Look at the default 'external index' and notice the facets.
* Enable Current Search Blocks.
* Notice the absence of the facet blocks. The facets for the default 'external index' have now changed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment