Skip to content

Commit

Permalink
[Algolia] implement updateIndexSettings
Browse files Browse the repository at this point in the history
  • Loading branch information
Yueyu Zhao committed May 13, 2024
1 parent 5285dfe commit 143b9c8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Engines/AlgoliaEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,20 @@ public function createIndex($name, array $options = [])
throw new Exception('Algolia indexes are created automatically upon adding objects.');
}

/**
* Update an index's settings.
*
* @param string $name
* @param array $options
* @return mix
*/
public function updateIndexSettings($name, array $options = [])
{
$index = $this->algolia->initIndex($name);

return $index->setSettings($options);
}

/**
* Delete a search index.
*
Expand Down

0 comments on commit 143b9c8

Please sign in to comment.