v0.18.0 π¦
·
896 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
TaskInfoand not aTaskobject anymore. (ex: add_documents). #299 get_tasksnow returns aTasksResultswhere the tasks are contained inside theresultsfield. #299task_idinTaskandTaskInfois now au32instead of au64#299index_uidinTaskandTaskInfois now optional. #299- Following taskTypes are renamed: #299
- documentPartial -> documentAdditionOrUpdate
- documentAddition -> documentAdditionOrUpdate
- clearAll -> documentDeletion
- Possibility to filter the tasks when using
get_tasksonindexUid,statusandtype. #299 - The returned keys when using
get_keys_withget_keysorget_keynow returns an additionalname anduid` field. #313 - The response from
get_keys_withandget_keysis now aKeysResultsinstead ofVec<Key>. #313 update_keyonly accepts updates on thedescriptionand thename#313client.get_indexesnow returns aIndexesResultsinstead of aVec<Index>#315client.get_indexes_rawnow returns aValueinstead of aVec<Value>#315Indexstructure: #315uidis now astringand not aArc<string>and is publicclientis now publicprimary_keyis now publicnamefield is removed
- In
SearchResultsnbHitsis now namedestimated_total_hits#316 - In
SearchResultsexhaustive_nb_hitsis removed. #316 - In
SearchResultsexhaustive_facets_countis removed. #316 - In
SearchQuerymatchesis now namedshow_mathes_positionand the methodwith_matchesis now namedwith_show_matches_position#316 - In
SearchResultsmatches_infois now namedmatches_position#316 - In
SearchQueryfacets_distributionis now namedfacets#316 - In
SearchResultsfacets_distributionis now namedfacet_distribution#316 client.get_documentsandclient.get_documents_withnow returns aDocumentsResultsinstead of aVec<T>#315client.get_documentshas no filtering parameters anymore, useget_documents_withto filter.- in
client.generate_tenant_token,apiKeyPrefixis now namedapiKeyUidand 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_statusremoved on Dumps struct #319 create_dumpnow returns aTaskInfoinstead of aDumpInfo#319- Remove the sync feature and use Arc everywhere by default (#251) @irevoire
π Enhancements
- Creation of a method
client.get_tasks_withand a structTasksQuerybased 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_keyaccepts a customnameand a customuuidto create deterministic API keys. #313client.get_indexes_withtakes as argumentIndexesQuerygiving you the possibility to setlimitandoffset. #315client.get_indexes_raw_withtakes as argumentIndexesQuerygiving you the possibility to setlimitandoffset. #315IndexUpdaterstruct 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) #315IndexesQuerystruct allows you to define the filtering applied during theget_all_indexes_withcall. #315- new method
client.get_documents_withtakes as argumentDocumentsQuerygiving the possibility to setlimitmoffsetand the fields that you want to see in the returned documents (default: all fields). #315 - new method
index.get_document_withtakes as argumentDocumentQuerygiving the possibility to chose the fields you want to see in your returned documents. #326
Thanks again to @SorenHolstHansen, @abhizer, @bidoubiwa, @brunoocasali, @irevoire ! π