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
Index.Searchchanges in the response fields: #306nbHitsreplaced withestimatedTotalHitsexhaustiveNbHitsis deletedexhaustiveFacetsCountis deletedfacetsDistributionresponse parameter is renamedfacetDistribution.
Index.Searchchanges in the request parameters: #306matchesrenamedshowMatchesPositionfacetsDistributionrequest parameter is renamedfacets.
Index.GetDocuments()andIndex.GetDocument()request parameters: #314attributesToRetrievereplaced withfields.
Index.GetTasks()has additional parameters for filtering:type,statusandindexUid. #310- All asynchronous methods now return a struct
TaskInfoinstead of 'Task' likeAddDocumentsorCreateIndex. #310 Index.GetTasksandClient.GetTasksaccept pagination metadata, addedlimit(default: 20),from. #310Client.GetAllIndexesandClient.GetAllRawIndexesnow returns anIndexesResultsstruct containing the following fields:Results,Limit,Offset,Total. #312Client.GetAllIndexesaccept pagination metadata, addedlimit(default: 20) andoffset(default: 0). #312- The
IndexUidfield in bothTaskInfoandTaskcan be nil Update tasks routes #313 Index.GetDocumentsandClient.GetDocumentsnow returns anDocumentsResultsstruct containing the following fields:Results,Limit,Offset,Total. #314Client.GetDumpStatushas been removed #311Client.CreateDump()now returns anTaskInfo#321Client.GenerateTenantToken(APIKeyUID string, SearchRules map[string]interface{}, Options *TenantTokenOptions)has now a mandatoryAPIKeyUIDparameter which should contain the uid of a specific API key. #315Index.GetDocumentsnow accepts pagination parameters:limit(default: 20) andoffset(default: 0). #314Client.GetKeysaccept pagination metadata, addedlimit(default: 20) andoffset(default: 0). #313Client.UpdateKeynow can just update theDescriptionand/or theName. #313Keynow has an additionalNamefield. #313
🚀 Enhancements
Client.GetKeys(param *KeysQuery)can now also find keys based on their key uid. #313Client.CreateKey(request *Key)lets you specify a custom uid (optionally) to create a new Key. #313
Thanks again to @alallema ! 🎉