Skip to content

Commit

Permalink
🐛 Switch to using clients indicies->delete method rather than bulk.
Browse files Browse the repository at this point in the history
  • Loading branch information
olsgreen committed Apr 14, 2024
1 parent 3a58e49 commit 1d27a42
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions src/ElasticsearchEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -293,21 +293,7 @@ public function createIndex($name, array $options = [])
*/
public function deleteIndex($name)
{
$this->elastic->bulk([
'body' => [
[
'delete' => [
'_index' => $name,
/**
* @deprecated Document mapping types scheduled deprecated in
* elasticsearch 6.0 will be removed in 8.0.
* https://bit.ly/2TZVZvq
*/
'_type' => $name,
],
]
]
]);
$this->elastic->indices()->delete(['index' => $name]);
}

/**
Expand Down

0 comments on commit 1d27a42

Please sign in to comment.