Releases: meilisearch/meilisearch-go
v0.21.1 🐹
🚀 Enhancements
- Rename MEILISEARCH_HOST to MEILISEARCH_URL (#366) @washbin
- add SearchRaw to return raw JSON from search (#377) @ginglis13
Thanks again to @alallema, @austinvazquez, @ginglis13, @shadowshot-x and @washbin! 🎉
v0.21.0 🐹
Check out the changelog of Meilisearch v0.29.0 for more information on the changes.
⚠️ Breaking changes
This breaking change may not affect you, but in any case, you should check your search queries if you want to keep the same behavior from v0.28.
- The
NOTfilter keyword does not have an implicitlyEXISToperator anymore. Check out for more information: meilisearch/meilisearch#2486 - Remove
Allfrom the methods name (#356) @vishalsodani
🚀 Enhancements
- Improve Docker configuration in the package (#301)
- Create key: Add ability to specify the
UidandNamevalue (#342) @dbolkensteyn - Pre-allocate search post body for
Index.Search()(#341) @trim21 - Ensure support to the new search query parameter
MatchingStrategy(#348) @brunoocasali - Ensure support to keys with wildcarded actions.
actionsfield during key creation now accepts wildcards on actions. For example,indexes.*provides rights toindexes.create,indexes.get,indexes.delete,indexes.delete, andindexes.update. (#349) @brunoocasali
Thanks again to @OptimusePrime, @alallema, @brunoocasali, @dbolkensteyn, @tMinamiii, @trim21 and @vishalsodani! 🎉
v0.20.1 🐹
v0.20.0 🐹
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 ! 🎉
v0.19.2 🐹
v0.19.1 🐹
This version makes this package compatible with Meilisearch v0.27.0🎉
Check out the changelog of Meilisearch v0.27.0 for more information about the changes.
🚀 Enhancements
- Feature/Analytics (#279) @brunoocasali
- Add new methods for the new typo tolerance settings #294 @alallema
Index.GetTypoTolerance()
Index.UpdateTypoTolerance(params)
Index.ResetTypoTolerance() - Ensure nested field support #290 @alallema
- Add new search parameters highlightPreTag, highlightPostTag and cropMarker #291 @alallema
v0.19.0 🐹
This version makes this package compatible with MeiliSearch v0.25 up to v0.26.0
🎉 Check out the changelog of MeiliSearch v0.26.0 for more information about the
⚠️ Breaking changes
🚀 Enhancements
v0.18.0 🐹
This package version is compatible with MeiliSearch v0.25.0 (#247)
⚠️ Breaking changes
- This package is only compatible with MeiliSearch v0.25.0 and later, but not with v0.24.0 and older. Be sure you are using at least MeiliSearch v0.25.0 or newer before doing the upgrade.
Why isn't it compatible? - Remove
GetOrCreateIndexmethod (#255) @alallema - Remove
DeleteIfExistsmethod (#256) @alallema - Remove
DeleteIndexIfExistsmethod (#257) @alallema - Redesign update API to task API (#262) @alallema
- All the actions on indexes are now asynchronous check out the task API references and the asynchronous tasks guide
CreateIndex(),UpdateIndex(),DeleteIndex()are now asynchrone and return ataskresponse instead of anIndex.WaitForPendingUpdate()is renamed intoWaitForTaskand is accessible fromindexand fromclient.- the current
index.WaitForTask()method call/tasks/:uid index.GetUpdateStatusis renamedindex.GetTaskindex.GetAllUpdateStatusis renamedindex.GetTasks- new method
client.WaitForTask()call/tasks/:uid - new method
client.WaitForTask() - new method
client.GetTasksthat calls/tasks - new method
client.GetTaskthat calls/tasks/:uid
Notes: The only two methods that now return anIndexareclient.Index()andclient.GetIndex()
- All the actions on indexes are now asynchronous check out the task API references and the asynchronous tasks guide
- Change
client.GetKeysdoes not return an object of keys, but aResultKeywith an array of keys inside. Check out keys API references. - Change MeilisearchApiMessage to MeilisearchApiError (#248) @mmachatschek
- Changes related to the next MeiliSearch release (v0.25.0) (#247)
🚀 Enhancements
- Add methods for new document formats (#235) @theag3nt
- Addition related to API keys (#264) @alallema
- Granular management of API keys is now added to MeiliSearch. New methods have been created to manage this:
client.GetKeyget information about a specific API key.client.CreateKeycreate a new API key.client.DeleteKeydelete an API key.client.UpdateKeyupdate an API key.
- Check out the documentation guide.
- Granular management of API keys is now added to MeiliSearch. New methods have been created to manage this:
🐛 Bug Fixes
- Fix the /stats response json unmarshaling (#250) @roelofjan-elsinga
Thanks again to @alallema, @dichotommy, @mmachatschek, @roelofjan-elsinga and @theag3nt! 🎉
v0.17.0 🐹
This package version is compatible with MeiliSearch v0.24.0
⚠️ Breaking changes
- Rewrite
AddDocumentandUpdateDocumentmethod with variadic parameter (#223) @penthaapatel - Rename
ErrorCode,ErrorTypeandErrorLinkintoCode,TypeandLinkin the error handler (#231) @curquiza - Convert the dump status to an enum (#243) @roelofjan-elsinga
🚀 Enhancements
- Add method to add document by batches (#220) @b4sen
- Add method to get the raw index information (#224) @Joel-Nickson
- Make request body handling consistent (#234) @theag3nt
Thanks again to @Hard-Coder05, @Joel-Nickson, @Thearas, @alallema, @b4sen, @curquiza, @penthaapatel, @roelofjan-elsinga and @theag3nt! 🎉
v0.16.2 🐹
This package version is compatible with MeiliSearch v0.23.0
Changes
- Add new client method
DeleteIndexIfExists()(#206) @kashifsoofi - Add new client method
GetAllRawIndexes()(#208) @rizalgowandy
Thanks again to @PaulKovalov, @alallema, @curquiza, @kashifsoofi, @rizalgowandy and @zinovik! 🎉