Releases: meilisearch/meilisearch-php
v0.18.0 🐘
v0.17.2 🐘
v0.17.1 🐘
Changes
- Add more details MeiliSearch\Exceptions\ApiException (#150) @claudiunicolaa
Thanks again to @claudiunicolaa! 🎉
v0.17.0 🐘
Breaking changes ⚠️
- Should throw exception if httpBody empty (#146) @jwohlfert23
- Rename MeiliSearch\HTTPRequestException into MeiliSearch\ApiException (#143) @claudiunicolaa
- Add MeiliSearch\Exceptions\CommunicationException (#144) @claudiunicolaa
Thanks again to @claudiunicolaa, @jwohlfert23 ! 🎉
v0.16.0 🐘
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 ofSearchResult
ex:$index->search('prince')->getHits()
Please check the README and the Wiki to know how to use it!
💡 If you still want to get anArray
as a return, userawSearch()
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 anIndex
object in your code base. Useindex()
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 theprimaryKey
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 anArray
. -
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 anIndex
instance (#124) @curquiza
Thanks again to @Guikingone, @ppshobi, @bidoubiwa and @curquiza ! 🎉
v0.15.1 🐘
Changes
- This package is now compatible with the new release of MeiliSearch (v0.16.0) without any breaking changes (#111) @curquiza
- Add PHP 8 Support (#116) @szainmehdi
Thanks again to @szainmehdi! 🎉
v0.15.0 🐘
Changes
- Add dumps methods (#106) @shokme
Related docs: https://docs.meilisearch.com/references/dump.html#dumps
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 🐘
v0.14.1-alpha0 🐘 [Test purpose only]
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 🐘
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! 🎉