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.
⚠️ If you want to adopt new features of this release, update the Meilisearch server to the according version.
🚀 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 the
Index\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 the
Index\filterableAttributes()
.
⚠️ Remember to update your Meilisearch server to v1.2.0 or newer before adopting it.
Thanks again to @brunoocasali, @tacman, @norkunas! 🎉