v0.20.0 πΉ
meili-bot
released this
11 Jul 16:34
·
581 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
Index.Search
changes in the response fields: #306nbHits
replaced withestimatedTotalHits
exhaustiveNbHits
is deletedexhaustiveFacetsCount
is deletedfacetsDistribution
response parameter is renamedfacetDistribution
.
Index.Search
changes in the request parameters: #306matches
renamedshowMatchesPosition
facetsDistribution
request parameter is renamedfacets
.
Index.GetDocuments()
andIndex.GetDocument()
request parameters: #314attributesToRetrieve
replaced withfields
.
Index.GetTasks()
has additional parameters for filtering:type
,status
andindexUid
. #310- All asynchronous methods now return a struct
TaskInfo
instead of 'Task' likeAddDocuments
orCreateIndex
. #310 Index.GetTasks
andClient.GetTasks
accept pagination metadata, addedlimit
(default: 20),from
. #310Client.GetAllIndexes
andClient.GetAllRawIndexes
now returns anIndexesResults
struct containing the following fields:Results
,Limit
,Offset
,Total
. #312Client.GetAllIndexes
accept pagination metadata, addedlimit
(default: 20) andoffset
(default: 0). #312- The
IndexUid
field in bothTaskInfo
andTask
can be nil Update tasks routes #313 Index.GetDocuments
andClient.GetDocuments
now returns anDocumentsResults
struct containing the following fields:Results
,Limit
,Offset
,Total
. #314Client.GetDumpStatus
has been removed #311Client.CreateDump()
now returns anTaskInfo
#321Client.GenerateTenantToken(APIKeyUID string, SearchRules map[string]interface{}, Options *TenantTokenOptions)
has now a mandatoryAPIKeyUID
parameter which should contain the uid of a specific API key. #315Index.GetDocuments
now accepts pagination parameters:limit
(default: 20) andoffset
(default: 0). #314Client.GetKeys
accept pagination metadata, addedlimit
(default: 20) andoffset
(default: 0). #313Client.UpdateKey
now can just update theDescription
and/or theName
. #313Key
now has an additionalName
field. #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 ! π