Skip to content

Releases: meilisearch/meilisearch-php

v0.17.1 🐘

12 Apr 18:37
17d8582
Compare
Choose a tag to compare

Changes

Thanks again to @claudiunicolaa! 🎉

v0.17.0 🐘

02 Mar 14:43
cc77f60
Compare
Choose a tag to compare

Breaking changes ⚠️

Thanks again to @claudiunicolaa, @jwohlfert23 ! 🎉

v0.16.0 🐘

21 Jan 16:31
e96b639
Compare
Choose a tag to compare

Sorry for all the breaking changes, our goal is to make this package as good and easy-to-use as possible! If you have any trouble, feel free to open an issue in the repo. We will glad to guide you through all these changes!

Breaking changes ⚠️

  • The search() method has now the following prototype:
    public function search($query, array $searchParams = [], array $options = [])
    The usage is described in the Wiki.
    (#120) @Guikingone

  • The search() method now returns a instance of SearchResult
    ex: $index->search('prince')->getHits()
    Please check the README and the Wiki to know how to use it!
    💡 If you still want to get an Array as a return, use rawSearch() or set the $option parameter to ['raw' => true].
    (#120) @Guikingone

  • $client->getIndex() is still present but does an HTTP call. This method should be only used to fetch information from the MeiliSearch instance, not to manipulate an Index object in your code base. Use index() instead. See the Getting Started to be sure using this SDK the most optimized way. (#124) @curquiza

  • $client->updateIndex returns an Index instance. (#124) @curquiza

  • $index->getPrimaryKey() does not do any HTTP call, but only returns the primaryKey attribute. Use $index->fetchPrimaryKey() if you want the same behavior as the old $index->getPrimaryKey() (#124) @curquiza

  • $index->show() is removed and replaced by $index->fetchInfo() (returns an instance) and $index->fetchRawInfo() (returns an array) (#124) @curquiza

  • $client->showIndex($uid) is removed. Use $client->getIndex($uid) (returns an instance) or $client->index($uid)->fetchRawInfo() (returns an array) instead. (#124) @curquiza

Changes

  • The SearchResult instance contains the new methods described in this section of the Wiki. (#120) @Guikingone and (#134) @curquiza

  • Add the rawSearch() method (#134) @curquiza
    This method has the same behavior as the "old" search() method: it returns the raw response sent by the MeiliSearch in an Array.

  • Introduction of the $client->index($uid) method that replaces $client->getIndex($uid). getIndex() is still available but does HTTP call, so this should be only used to fetch information from the MeiliSearch instance. See our Getting Started to use this package the right way (#124) @curquiza

  • New attribute in the Index class: primaryKey accessible via the getter $index->getPrimaryKey() (#124) @curquiza

  • New method $index->fetchRawInfo(): returns an array of index (#124) @curquiza

  • New method $index->fetchInfo(): returns an Index instance (#124) @curquiza

Thanks again to @Guikingone, @ppshobi, @bidoubiwa and @curquiza ! 🎉

v0.15.1 🐘

04 Nov 16:59
b10e3d5
Compare
Choose a tag to compare

Changes

Thanks again to @szainmehdi! 🎉

v0.15.0 🐘

14 Oct 14:05
ced7424
Compare
Choose a tag to compare

Changes

Breaking changes ⚠️

  • Remove the ability to replace Response and Request Factories (#100) @ppshobi
  • Update delete index to always return an array (#104) @pedroxido

Thanks again to @pedroxido, @ppshobi and @shokme! 🎉

v0.14.2 🐘

28 Sep 15:30
7695f54
Compare
Choose a tag to compare

Changes

  • Fix HTTPRequestException when body is null (#98) @shokme

Thanks again to @curquiza, @eskombro, @jdreesen and @shokme! 🎉

v0.14.1-alpha0 🐘 [Test purpose only]

23 Sep 09:06
0c161bd
Compare
Choose a tag to compare

Changes

  • Replace HttpClientDiscovery with Psr18ClientDiscovery (#88) @bensherred
    => meiliseach-php is now compatible with the latest version of Guzzle (^7) without any breaking!

Thanks to @bensherred, @ppshobi and @shokme! 🎉

v0.14.1 🐘

23 Sep 13:37
fdbf6b8
Compare
Choose a tag to compare

Changes

  • Replace HttpClientDiscovery with Psr18ClientDiscovery (#88) @bensherred
    => meiliseach-php is now compatible with the latest version of Guzzle (^7) without any breaking!

Thanks to @bensherred, @ppshobi and @shokme! 🎉

v0.14.0 🐘

21 Sep 15:30
eacc7f5
Compare
Choose a tag to compare

Changes

Breaking changes ⚠️

  • Remove locked dependency with guzzle 6 to allow any psr18 compatible HTTP client (#81) @ppshobi
    => From now, no default HTTP client is present in this package to avoid this kind of issue #76.
    If you didn't use another HTTP client that guzzle, here is the new installation line you need to use:
$ composer require meilisearch/meilisearch-php php-http/guzzle6-adapter:^2.0 http-interop/http-factory-guzzle:^1.0

Thanks again to @mblarsen and @ppshobi! 🎉

v0.13.3 🐘

07 Sep 10:37
518d45e
Compare
Choose a tag to compare

Changes

Thanks again to @shokme! 🎉