Skip to content

Releases: algolia/algoliasearch-client-php

1.26.0

07 Jun 12:36
aeb8ab5
Compare
Choose a tag to compare

🎉 Note to contributors:
Everybody is now able to run the test on Travis, since we moved to temporary credentials.️ ⤵️
https://blog.algolia.com/travis-encrypted-variables-external-contributions/

  • Fix: addApiKey was fixed in 1.25.0 (see changelog entry below). The same fix was ported to updateApiKey.

  • Fix: Curl was added to the composer requirements. If you get an error because curl is not enabled in CLI, enable it or use the flag --ignore-platform-reqs

  • Fix: Adding a rule with an empty ID failed silently, it will now throw an exception

  • Deprecation: Keys should not be managed at the Index level but at the Client level

    All methods Index::(list|get|add|update)ApiKeys() are now
    deprecated. If you already have keys on the Index, it would be best
    to delete them and regenerate new keys with client, adding the indexes
    restriction.

    Example:

    $client->addApiKey([
        'acl' => 'search',
        'indexes' => 'my_index_name',
    ])
  • Fix: Add $requestHeaders arg to Index::browse and Index::deleteBy

  • Fix: When browsing, ensure cursor is passed in the body
    Cursor can become so long that the generated URL fails (error HTTP 414).

  • Chore: Add PHP version to the UserAgent

1.25.1

02 Mar 13:25
805021e
Compare
Choose a tag to compare

1.25.1

  • feat(places): Set write hosts when using Places

Even though Algolia Places indices are read-only, we still need to take into
account the write hosts to let the user generate its own API keys.

1.25.0

28 Dec 08:10
0fd6eab
Compare
Choose a tag to compare
  • feat: Let you define all API keys capabilities in one array

Example:

$client->addApiKey([
    'acl' => [
        'search',
        'listIndexes',
    ],
    'validity' => $validity,
    'maxQueriesPerIPPerHour' => 1000,
    'maxHitsPerQuery' => 50,
    'indexes' => ['prefix_*'],
]);

instead of

$client->addApiKey(['search', 'listIndexes'], $validity, 1000, 50, ['prefix_*']);

1.24.0

12 Dec 13:06
170a835
Compare
Choose a tag to compare
  • feat: Introduce ScopedCopyIndex method, to copy settings, synonyms or query rules between indices

1.23.1

07 Nov 09:38
3f0a012
Compare
Choose a tag to compare
  • fix: remove all requestHeaders params from method signatures as it breaks backward compatibility. Features added in 1.23.0 still work the same.

1.23.0

26 Oct 14:11
Compare
Choose a tag to compare
  • feat: add a requestHeaders parameter to every method to allow passing custom HTTP headers on a per request basis
  • feat: add multi cluster management endpoints

1.22.0

17 Oct 07:10
Compare
Choose a tag to compare
  • feat: Introduce SynonymIterator to easily export all synonyms
  • feat: Introduce RuleIterator to easily export all query rules

1.21.0

06 Oct 13:44
Compare
Choose a tag to compare
  • feat: exclude disjunctive queries from analytics
  • fix: autoload Tests namespace only in dev
  • fix: remove usage of deprecated API key methods

1.20.0

31 Aug 09:33
Compare
Choose a tag to compare
  • feat(places): add getObject support

1.19.0

28 Aug 08:34
Compare
Choose a tag to compare
  • feat(query-rules): add query rules support
  • feat(delete-by): add delete by support
  • feat: add a dedicated AlgoliaConnectionException