2

I'm using the solr search integration module with facet api on drupal 7 and I'm having issues getting the facets to show on non-search pages. I've checked the box for non-search pages and added a few different paths but nothing appears on those pages in the regions that I assign the facet blocks. It seems that the blocks are not receiving any data to populate and I don't know why. Any incite on what I'm doing wrong would be greatly appreciated.

  • +1 this is something I want too - see the background and approach that I am considering in my answer below. – therobyouknow Jul 1 '13 at 8:23
0

This is also something I want whereby the search facets are visible alongside a content type.

This problem applies to search facets in general (e.g. for those who don't use solr but use 'database search' - a "poor man's" version with less demanding requirements, suitable for shared hosting.)

Facets are generated from search results - so on a page with no search results the facets will not appear. That appears to be the design, as explained here: Show facet filter even if there is no result

There are several possibilities that you (and I) could consider:

  • How do I allow facets on my full content display page? - here the answer is not to display faceted search on a content page / non-search page but rely on breadcrumbs to link back to a search page

  • My preferred approach (not yet implemented): is to put search results on the same page as the content. These search results will be the same as those that one clicked through before the content page. In other words, the same list of results that contained the link to the content item are displayed on the page of the content item itself. These will of course be focused search items ("drill down"ed) results. These would serve a purpose for the user as "related" and follows convention - if you look at this site drupal.stackexchange.com you'll see related results. But we would probably want to display them in a smaller space, using a different view with theming and the view could restrict the number of items shown.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.