Skip to content

Commit

Permalink
Upgrade Algolia package to V4
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz committed Sep 14, 2024
1 parent 8fecba1 commit 8a124de
Show file tree
Hide file tree
Showing 10 changed files with 320 additions and 99 deletions.
3 changes: 1 addition & 2 deletions packages/seal-algolia-adapter/bin/drop_all_indexes.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@
echo 'Delete ... ' . $value['name'] . \PHP_EOL;

try {
$client->initIndex($value['name'])
->delete();
$client->deleteIndex($value['name']);
} catch (\Exception) {
echo 'Errored ... ' . $value['name'] . \PHP_EOL;
$return = 1;
Expand Down
2 changes: 1 addition & 1 deletion packages/seal-algolia-adapter/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"require": {
"php": "^8.1",
"schranz-search/seal": "^0.5",
"algolia/algoliasearch-client-php": "^3.3",
"algolia/algoliasearch-client-php": "^4.4",
"psr/container": "^1.0 || ^2.0"
},
"require-dev": {
Expand Down
Loading

0 comments on commit 8a124de

Please sign in to comment.