I upgraded to the latest DEV versions of both Search API and Facets, and they disappear from the views page. Everything still looks great on config pages, and the blocks are still placed and ordered in the same region. Nothing looks out of the ordinary. It is still printing the region, but its empty.

Trying to step through the code, and it doesn't even seem to be reaching the build() method of the widget. Anything I should look at? Something I might be missing?

I'm just using the default Database source that comes with Search API.

Thanks!

Comments

jazzdrive3 created an issue. See original summary.

jazzdrive3’s picture

Issue summary: View changes
jazzdrive3’s picture

Digging into the issue a bit, there is a mismatch on the facet source ID.

In DefaultFacetManager::getFacetsByFacetSourceId(), the $facetsource_id passed in is "views_page:dbz_card_search__page_1", but what is returned by $facet->getFacetSourceId() is "search_api_views:dbz_card_search:page_1"

jazzdrive3’s picture

Category: Support request » Bug report

So it looks like this line in SearchApiQuery.php of Search API needs to be updated:

$this->query->setSearchId('views_page:' . $view->id() . '__' . $view->current_display);

Or the way Facets creates it's facetsource IDs needs to be updated.

That decision is above my pay grade :)

borisson_’s picture

Status: Active » Closed (duplicate)

Can you please test patch 51 over in #2794745: Use Search API's display plugin to fix facets? That should work.