Created
November 17, 2021 14:49
-
-
Save nelson-ph/bcff767a800e3cd5dabc61c486b67478 to your computer and use it in GitHub Desktop.
Drupal - search_api_swiftype - support multiple indexes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Index: src/Plugin/search_api/backend/SwiftypeBackend.php | |
| IDEA additional info: | |
| Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | |
| <+>UTF-8 | |
| =================================================================== | |
| diff --git a/src/Plugin/search_api/backend/SwiftypeBackend.php b/src/Plugin/search_api/backend/SwiftypeBackend.php | |
| --- a/src/Plugin/search_api/backend/SwiftypeBackend.php | |
| +++ b/src/Plugin/search_api/backend/SwiftypeBackend.php (date 1637160068723) | |
| @@ -610,6 +610,7 @@ | |
| $data = [ | |
| 'spelling' => 'always', | |
| 'per_page' => $limit, | |
| + 'engine_key' => $engine->getKey() | |
| ]; | |
| if (!empty($page)) { | |
| $data['page'] = $page; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment