Commit ad3e8499 authored by dmsmidt's avatar dmsmidt Committed by borisson_

Issue #2864956 by dmsmidt: Remove hard server instance dependancies (WSODs due to orphaned indexes)

parent 10a19315
......@@ -30,13 +30,12 @@ class SearchApiDisplayDeriver extends FacetSourceDeriverBase {
$display = $display_plugin_manager->createInstance($display_id);
$supports_facets = $display->getIndex()
->getServerInstance()
->supportsFeature('search_api_facets');
$server = $display->getIndex()
->getServerInstance();
// If facets are not supported by the server, don't actually add this to
// the list of plugins.
if (!$supports_facets) {
if (empty($server) || !$server->supportsFeature('search_api_facets')) {
continue;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment