Releases: meilisearch/meilisearch-php
v1.5.0 π
This version introduces features released on Meilisearch v1.5.0 π
Check out the changelog of Meilisearch v1.5.0 for more information on the changes.
π Enhancements
- Needs Meilisearch v1.5.0 -> Add new method
createSnapshot()
to trigger snapshot creation. Similar to the already existingcreateDump()
for dumps (#587) @brunoocasali
βοΈ Maintenance/misc
v1.4.1 π
π Bug Fixes
- Fix an unexpected breaking change in v1.4.0 when passing a empty masterkey (#585) @mmachatschek
Thanks again to @mmachatschek! π
v1.4.0 π
This version introduces features released on Meilisearch v1.4.0 π
Check out the changelog of Meilisearch v1.4.0 for more information on the changes.
π Enhancements
$index->getDictionary();
$index->updateDictionary(['J. R. R.', 'W. E. B.']);
$index->resetDictionary();
$index->getSeparatorTokens();
$index->updateSeparatorTokens(['|', '…']);
$index->resetSeparatorTokens();
$index->getNonSeparatorTokens();
$index->updateNonSeparatorTokens(['@', '#']);
$index->resetNonSeparatorTokens();
β οΈ Warning usage with v1.4.0
A bug fix in Meilisearch v1.4.0 introduces a breaking change in the filter usage. It only concerns users using the filter
search parameter with \
.
Explanation and change to apply are detailed in the Meilisearch v1.4.0
Thanks again to @alallema, @brunoocasali, @curquiza, @dependabot, @dependabot[bot], @meili-bors[bot], and @norkunas! π
v1.3.0 π
This version introduces features released on Meilisearch v1.3.0 π
Check out the changelog of Meilisearch v1.3.0 for more information on the changes.
π Enhancements
- Add a base exception interface all exceptions must implement (#534) @94noni
β οΈ EXPERIMENTAL:setShowRankingScoreDetails
andsearch(['showRankingScoreDetails' => boolean])
to show the scores of each relevant document returned in the search.β οΈ EXPERIMENTAL:setVector
andsearch(['vector' => [...]])
to enable vector search capabilities.- Add
setAttributesToSearchOn
andsearch(['attributesToSearchOn' => [...]])
index->facetSearch(FacetSearchQuery params)
to search only in facets.
π Misc
- Migrate docs hosting to Meilisearch subdomain (#553) @Strift
- Update SDK docs link in README.md (#556) @Strift
- [DX] Improve quality of Client class & related (#514) @stloyd
- [DX] Add support for PHPUnit 10.1 (#516) @stloyd
Thanks again to @94noni, @Strift, @alallema, @brunoocasali, @norkunas and @stloyd! π
v1.2.1 π
π Bug Fixes
- Fix fetching documents by
getDocuments
withfilters
andfields
being set inDocumentsQuery
(#523) @panzer-punk - Remove duplicated key on code-samples (#520) @justkahdri
Thanks again to @justkahdri, @panzer-punk! π
v1.2.0 π
This version introduces features released on Meilisearch v1.2.0 π
Check out the changelog of Meilisearch v1.2.0 for more information on the changes.
π Enhancements
-
The method
deleteDocuments()
now supports a different behavior. This method could take anarray
containing afilter
key with the filter value, which will filter and delete the documents. #509 @brunoocasaliβ οΈ You must configure the attributes you want to filter using theIndex\filterableAttributes()
.
β οΈ Remember to update your Meilisearch server to v1.2.0 or newer before adopting it.Still, even being supported, the ability to receive only a list of ids is deprecated, and it will be removed in
meilisearch-php
v2 -
Add the ability to
setFilter
in theDocumentsQuery
. When a query with afilter
is sent togetDocuments(DocumentsQuery $query)
it will filter the documents similar to thesearch
method. See the docs on how to use filters. #510 @brunoocasaliβ οΈ You must configure the attributes you want to filter using theIndex\filterableAttributes()
.
β οΈ Remember to update your Meilisearch server to v1.2.0 or newer before adopting it.
Thanks again to @brunoocasali, @tacman, @norkunas! π
v1.1.0
This version introduces features released on Meilisearch v1.1.0 π
Check out the changelog of Meilisearch v1.1.0 for more information on the changes.
If you want to adopt new features of this release, update the Meilisearch server to the according version.
π Enhancements
- Add a new optional argument to
addDocumentsCsv
,addDocumentsCsvInBatches
, andupdateDocumentsCsvInBatches
. This argument allows you to customize the separator character in yourcsv
file. (#480) @brunoocasali - Add a new getter, the
facetStats
onSearchResult
(#487) @brunoocasali. - Add
$client->multiSearch()
method to execute multiple search requests simultaneously with different configurations. (#481) @brunoocasali-
Introduce
SearchQuery
builder class to build the search requests used in themultiSearch
.
Usage example:$this->client->multiSearch([ (new SearchQuery())->setIndexUid('books') ->setQuery('princ') ->setSort(['author:desc']), (new SearchQuery())->setIndexUid('movies') ->setQuery('be') ->setHitsPerPage(4) ->setFilter(['duration-float > 3']), ]);
β οΈ TheSearchQuery
was not meant to be used if the regular$index->search()
requests (yet). -
v1.0.0 π
This version makes this package compatible with Meilisearch v1.0.0 π
Check out the changelog of Meilisearch v1.0.0 for more information on the changes.
π₯ Breaking Changes
Endpoints/Indexes
date attributes$createdAt
and$updatedAt
areDateTime
now instead ofstring
. (#457) @brunoocasali- Removed
getCreatedAtString
andgetUpdatedAtString
functions.
- Removed
- Add
canceledBy
/setCanceledBy
inTasksQuery
(#454) @brunoocasali - Remove
next
attribute andsetNext
fromTasksQuery
. (#454) @brunoocasali - Remove
next
attribute andsetNext
fromDeleteTasksQuery
. (#454) @brunoocasali - Remove
next
,canceledBy
attributes andsetNext
,setCanceledBy
fromCancelTasksQuery
. (#454) @brunoocasali - Remove
deleteAllIndexes
, since they don't really delete all the indexes but only the first page. (#454) @brunoocasali - Remove
getAllRawIndexes
function. (#454) @brunoocasali - Rename
getAllIndexes
togetIndexes
. (#454) @brunoocasali - Move all traits to
src/Endpoints/Delegates
. (#455) @brunoocasaliMeilisearch\Delegates\HandlesIndex
toMeilisearch\Endpoints\Delegates\HandlesIndex
Meilisearch\Delegates\HandlesSystem
toMeilisearch\Endpoints\Delegates\HandlesSystem
Meilisearch\Delegates\TasksQueryTrait
toMeilisearch\Endpoints\Delegates\TasksQueryTrait
Enhancements
Thanks again to @brunoocasali and @norkunas! π
v0.27.0 π
v0.26.1
as breaking, so v0.27.0
.
You should be careful because every occurrence of MeiliSearch
, even in the file names were changed to Meilisearch
.
More details in the comments section here and here.
Original changelog from v0.26.1
:
π Enhancements
- Change casing of
MeiliSearch
toMeilisearch
(#431) @mmachatschek
::class
directly, a change is required, as pointed out #431 (comment)
Thanks again to @brunoocasali and @mmachatschek! π
[DEPRECATED] v0.26.1 π
π Enhancements
- Change casing of
MeiliSearch
toMeilisearch
(#431) @mmachatschek
::class
directly, a change is required, as pointed out #431 (comment)
Thanks again to @brunoocasali and @mmachatschek! π