We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 835a737 commit 7385e33Copy full SHA for 7385e33
src/Engine.php
@@ -90,9 +90,12 @@ public function remove($searchableEntities): array
90
91
$result = [];
92
foreach ($data as $indexUid => $objects) {
93
- $result[$indexUid] = $this->client
94
- ->index($indexUid)
95
- ->deleteDocument(reset($objects));
+ $result[$indexUid] = [];
+ foreach ($objects as $object) {
+ $result[$indexUid][] = $this->client
96
+ ->index($indexUid)
97
+ ->deleteDocument($object);
98
+ }
99
}
100
101
return $result;
0 commit comments