Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save nelson-ph/bcff767a800e3cd5dabc61c486b67478 to your computer and use it in GitHub Desktop.

Select an option

Save nelson-ph/bcff767a800e3cd5dabc61c486b67478 to your computer and use it in GitHub Desktop.
Drupal - search_api_swiftype - support multiple indexes
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