Commit 29f7c9b4 authored by Prabhat Burnwal's avatar Prabhat Burnwal Committed by Nikunj Kotecha
Browse files

Issue #3263024 by Prabhat Burnwal: Optimise bulk deletion

parent c79e0e25
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -111,6 +111,12 @@ class SearchApiAlgoliaHelper {
    foreach ($item_ids as $objectid) {
      $indexId = $index->getOption('algolia_index_name');
      if ($index->getOption('algolia_index_apply_suffix') && !empty($language)) {
        $objectIdParsed = explode(':', $objectid);
        if (end($objectIdParsed) !== $language) {
          // Skip the object ids in other language.
          continue;
        }

        $indexId .= '_' . $language;
      }