Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #2
jazzdrive3 CreditAttribution: jazzdrive3 at Lullabot commentedComment #3
jazzdrive3 CreditAttribution: jazzdrive3 at Lullabot commentedDigging 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"
Comment #4
jazzdrive3 CreditAttribution: jazzdrive3 at Lullabot commentedSo 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 :)
Comment #5
borisson_Can you please test patch 51 over in #2794745: Use Search API's display plugin to fix facets? That should work.