Skip to content

Commit

Permalink
fix: add correct methods
Browse files Browse the repository at this point in the history
  • Loading branch information
lukmzig committed Nov 7, 2024
1 parent 2e8c398 commit 7eb3c91
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/SearchClient/SearchClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public function updateByQuery(array $params): array
public function deleteByQuery(array $params): array
{
try {
return $this->getArrayResponse($this->client->updateByQuery($params));
return $this->getArrayResponse($this->client->deleteByQuery($params));
} catch (Exception $exception) {
return $this->handleExceptionsWithArray($exception, 'Failed to delete by query');
}
Expand All @@ -175,7 +175,7 @@ public function createIndex(array $params): array
public function openIndex(array $params): array
{
try {
return $this->getArrayResponse($this->client->indices()->create($params));
return $this->getArrayResponse($this->client->indices()->open($params));
} catch (Exception $exception) {
return $this->handleExceptionsWithArray($exception, 'Failed to open index');
}
Expand All @@ -187,7 +187,7 @@ public function openIndex(array $params): array
public function closeIndex(array $params): array
{
try {
return $this->getArrayResponse($this->client->indices()->create($params));
return $this->getArrayResponse($this->client->indices()->close($params));
} catch (Exception $exception) {
return $this->handleExceptionsWithArray($exception, 'Failed to close index');
}
Expand Down

0 comments on commit 7eb3c91

Please sign in to comment.