v0.18.0 π¦
·
652 commits
to refs/heads/main
since this release
This version makes this package compatible with Meilisearch v0.28.0 π
Check out the changelog of Meilisearch v0.28.0 for more information on the changes.
π₯ Breaking Changes
- Actions that create a task in Meilisearch now return a
TaskInfo
and not aTask
object anymore. (ex: add_documents). #299 get_tasks
now returns aTasksResults
where the tasks are contained inside theresults
field. #299task_id
inTask
andTaskInfo
is now au32
instead of au64
#299index_uid
inTask
andTaskInfo
is now optional. #299- Following taskTypes are renamed: #299
- documentPartial -> documentAdditionOrUpdate
- documentAddition -> documentAdditionOrUpdate
- clearAll -> documentDeletion
- Possibility to filter the tasks when using
get_tasks
onindexUid
,status
andtype
. #299 - The returned keys when using
get_keys_with
get_keys
orget_key
now returns an additionalname and
uid` field. #313 - The response from
get_keys_with
andget_keys
is now aKeysResults
instead ofVec<Key>
. #313 update_key
only accepts updates on thedescription
and thename
#313client.get_indexes
now returns aIndexesResults
instead of aVec<Index>
#315client.get_indexes_raw
now returns aValue
instead of aVec<Value>
#315Index
structure: #315uid
is now astring
and not aArc<string>
and is publicclient
is now publicprimary_key
is now publicname
field is removed
- In
SearchResults
nbHits
is now namedestimated_total_hits
#316 - In
SearchResults
exhaustive_nb_hits
is removed. #316 - In
SearchResults
exhaustive_facets_count
is removed. #316 - In
SearchQuery
matches
is now namedshow_mathes_position
and the methodwith_matches
is now namedwith_show_matches_position
#316 - In
SearchResults
matches_info
is now namedmatches_position
#316 - In
SearchQuery
facets_distribution
is now namedfacets
#316 - In
SearchResults
facets_distribution
is now namedfacet_distribution
#316 client.get_documents
andclient.get_documents_with
now returns aDocumentsResults
instead of aVec<T>
#315client.get_documents
has no filtering parameters anymore, useget_documents_with
to filter.- in
client.generate_tenant_token
,apiKeyPrefix
is now namedapiKeyUid
and expects the uid of the signing API key as a value. The prototype of the function changed accordingly. #318pub fn generate_tenant_token( api_key_uid: String, search_rules: Value, api_key: impl AsRef<str>, expires_at: Option<OffsetDateTime>, ) -> Result<String, Error>
- Method
get_dump_status
removed on Dumps struct #319 create_dump
now returns aTaskInfo
instead of aDumpInfo
#319- Remove the sync feature and use Arc everywhere by default (#251) @irevoire
π Enhancements
- Creation of a method
client.get_tasks_with
and a structTasksQuery
based of this that lets you filter tasks. #299 - Creation of
client.get_keys_with()
that lets you paginate onlimit
(default: 20),offset
(default: 0). #313 create_key
accepts a customname
and a customuuid
to create deterministic API keys. #313client.get_indexes_with
takes as argumentIndexesQuery
giving you the possibility to setlimit
andoffset
. #315client.get_indexes_raw_with
takes as argumentIndexesQuery
giving you the possibility to setlimit
andoffset
. #315IndexUpdater
struct gives you the possibility to create an instance of all the fields you would like to change in an Index and then execute the update: `IndexUpdater::new(&client).with_primary_key("my_id".to_string()).execute().await) #315IndexesQuery
struct allows you to define the filtering applied during theget_all_indexes_with
call. #315- new method
client.get_documents_with
takes as argumentDocumentsQuery
giving the possibility to setlimit
moffset
and the fields that you want to see in the returned documents (default: all fields). #315 - new method
index.get_document_with
takes as argumentDocumentQuery
giving the possibility to chose the fields you want to see in your returned documents. #326
Thanks again to @SorenHolstHansen, @abhizer, @bidoubiwa, @brunoocasali, @irevoire ! π