Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
F
facets
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
7
Merge Requests
7
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
facets
Commits
ad3e8499
Commit
ad3e8499
authored
Apr 01, 2017
by
dmsmidt
Committed by
borisson_
Apr 01, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2864956
by dmsmidt: Remove hard server instance dependancies (WSODs due to orphaned indexes)
parent
10a19315
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
src/Plugin/facets/facet_source/SearchApiDisplayDeriver.php
src/Plugin/facets/facet_source/SearchApiDisplayDeriver.php
+3
-4
No files found.
src/Plugin/facets/facet_source/SearchApiDisplayDeriver.php
View file @
ad3e8499
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment