I am not new to Drupal, but I am new to Search, Facets and Solr, so please forgive me if I am using terms incorrectly. It is also a possibility that this issue may be a Search API issue and not a Facet API issue. I believe my questions is similar to #1775242: Allow the current search blocks to be used by multiple searchers, but is related to facets rather than the current search block.

Environment:
Chaos Tool Suite 7.x-1.2
Context 7.x-3.0-beta6 (used for placing facet blocks)
Entity API 1.0
Facet API 7.x-1.x-dev
Panels 7.x-3.x-dev
Search API 7.x-1.3
Search API Solr Search 7.x-1.0-rc2

Scenario:
I have a Company content type with a Type field (taxonomy term). I want to group companies by their type, and provide a description for each group. To achieve this, I have created a view based on the company search index, created a Content pane display for each type, filtered the display by that type and added a text area to the header of the display. I added each of these Content pane displays to a Panel Page where the facet blocks are also displayed. My problem is that the facets seem to be built from the last Content pane display listed on the Panel Page.

Question:
Is this a Facet API related issue or it originating from the Search API and related modules? Is this a bug and facets should be built from all content displayed on a page that share the index the facet is derived from? Is this a support request and I am missing some settings somewhere? Is this a feature request, and if so, where would I start looking to implement it? Or finally, is this not possible or at the very least extremely difficult to implement given the technologies used?

I have a workaround to build a single view grouping items by Type and then altering the view adding in the descriptions for each group via a hook, but I thought the first option is a little more elegant and more maintainable for non-coders.

Thanks in advance for any assistance!

Comments

jantoine’s picture

I was able to work around this issue by creating a Views Facets Block display (provided by the Search API module) that includes all the results from the other Search API views displays on this page. This block was hidden and placed just before the facet blocks so that it would be the last search query run just before the facets are rendered ensuring facets will be built from this search query result set.

blogers’s picture

How you implemet the facets of a multindex search an only facet unifacate to one search page?