Skip to content

Commit 17b5954

Browse files
committed
ECS-931
1 parent 4e199c9 commit 17b5954

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ElasticClient.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@ public function indicesCreate(string $index, array $settings): void
7878
]);
7979
}
8080

81-
public function bulk(string $index, array $body): array
81+
public function bulk(?string $index, array $body): array
8282
{
83-
return $this->client->bulk([
83+
return $this->client->bulk(array_filter([
8484
'index' => $index,
8585
'body' => $body,
86-
]);
86+
]));
8787
}
8888

8989
public function documentDelete(string $index, int|string $id): array

0 commit comments

Comments
 (0)