Skip to content

Releases: meilisearch/meilisearch-go

v0.21.1 🐹

08 Nov 11:21
660658f
Compare
Choose a tag to compare

🚀 Enhancements

Thanks again to @alallema, @austinvazquez, @ginglis13, @shadowshot-x and @washbin! 🎉

v0.21.0 🐹

03 Oct 15:09
334ca7d
Compare
Choose a tag to compare

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.

🚀 Enhancements

  • Improve Docker configuration in the package (#301)
  • Create key: Add ability to specify the Uid and Name value (#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.
    • actions field during key creation now accepts wildcards on actions. For example, indexes.* provides rights to indexes.create, indexes.get,indexes.delete, indexes.delete, and indexes.update. (#349) @brunoocasali

Thanks again to @OptimusePrime, @alallema, @brunoocasali, @dbolkensteyn, @tMinamiii, @trim21 and @vishalsodani! 🎉

v0.20.1 🐹

28 Jul 14:36
2c850c5
Compare
Choose a tag to compare

🚀 Enhancements

Thanks again to @GoryMoon, @alallema! 🎉

v0.20.0 🐹

11 Jul 16:34
6a849cb
Compare
Choose a tag to compare

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: #306
    • nbHits replaced with estimatedTotalHits
    • exhaustiveNbHits is deleted
    • exhaustiveFacetsCount is deleted
    • facetsDistribution response parameter is renamed facetDistribution.
  • Index.Search changes in the request parameters: #306
    • matches renamed showMatchesPosition
    • facetsDistribution request parameter is renamed facets.
  • Index.GetDocuments() and Index.GetDocument() request parameters: #314
    • attributesToRetrieve replaced with fields.
  • Index.GetTasks() has additional parameters for filtering: type, status and indexUid. #310
  • All asynchronous methods now return a structTaskInfo instead of 'Task' like AddDocuments or CreateIndex. #310
  • Index.GetTasks and Client.GetTasks accept pagination metadata, added limit (default: 20), from. #310
  • Client.GetAllIndexes and Client.GetAllRawIndexes now returns an IndexesResults struct containing the following fields: Results, Limit, Offset, Total. #312
  • Client.GetAllIndexes accept pagination metadata, added limit (default: 20) and offset (default: 0). #312
  • The IndexUid field in both TaskInfo and Task can be nil Update tasks routes #313
  • Index.GetDocuments and Client.GetDocuments now returns an DocumentsResults struct containing the following fields: Results, Limit, Offset, Total. #314
  • Client.GetDumpStatus has been removed #311
  • Client.CreateDump() now returns an TaskInfo #321
  • Client.GenerateTenantToken(APIKeyUID string, SearchRules map[string]interface{}, Options *TenantTokenOptions) has now a mandatory APIKeyUID parameter which should contain the uid of a specific API key. #315
  • Index.GetDocuments now accepts pagination parameters: limit (default: 20) and offset (default: 0). #314
  • Client.GetKeys accept pagination metadata, added limit (default: 20) and offset (default: 0). #313
  • Client.UpdateKey now can just update the Description and/or the Name. #313
  • Key now has an additional Name field. #313

🚀 Enhancements

  • Client.GetKeys(param *KeysQuery) can now also find keys based on their key uid. #313
  • Client.CreateKey(request *Key) lets you specify a custom uid (optionally) to create a new Key. #313

Thanks again to @alallema ! 🎉

v0.19.2 🐹

11 Jul 13:39
3bafcc9
Compare
Choose a tag to compare

🐛 Bug Fixes

  • Reduce the probability of connection reset (#303) @Thearas

Thanks again to @Thearas, @alallema, @arnemolland, ! 🎉

v0.19.1 🐹

09 May 11:24
5ebf404
Compare
Choose a tag to compare

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 🐹

14 Mar 15:50
4f14edd
Compare
Choose a tag to compare

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 about the flag and dump new behavior. (#269)

⚠️ Breaking changes

  • Rename type waitParams to WaitParams for making it exported (#272) @stormyyd

🚀 Enhancements

  • Added new method generateTenantToken() as a result of the addition of the multi-tenant functionality.
    This method creates a JWT tenant token that will allow the user to have multi-tenant indexes and thus restrict access to documents based on the end-user making the search request. (#275) @alallema

Thanks again to @alallema, @curquiza and @stormyyd! 🎉

v0.18.0 🐹

08 Feb 17:17
80c1b3e
Compare
Choose a tag to compare

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?
    • MeiliSearch v0.25.0 uses Authorization header instead of X-Meili-API-Key (#254) @alallema
    • MeiliSearch v0.25.0 has a new API regarding the updates that have been renamed into tasks. More details in the following points
  • Remove GetOrCreateIndex method (#255) @alallema
  • Remove DeleteIfExists method (#256) @alallema
  • Remove DeleteIndexIfExists method (#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 a task response instead of an Index.
      • WaitForPendingUpdate() is renamed into WaitForTask and is accessible from index and from client.
      • the current index.WaitForTask() method call /tasks/:uid
      • index.GetUpdateStatus is renamed index.GetTask
      • index.GetAllUpdateStatus is renamed index.GetTasks
      • new method client.WaitForTask() call /tasks/:uid
      • new method client.WaitForTask()
      • new method client.GetTasks that calls /tasks
      • new method client.GetTask that calls /tasks/:uid
        Notes: The only two methods that now return an Index are client.Index() and client.GetIndex()
  • Change client.GetKeys does not return an object of keys, but a ResultKey with 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.GetKey get information about a specific API key.
      • client.CreateKey create a new API key.
      • client.DeleteKey delete an API key.
      • client.UpdateKey update an API key.
    • Check out the documentation guide.

🐛 Bug Fixes

Thanks again to @alallema, @dichotommy, @mmachatschek, @roelofjan-elsinga and @theag3nt! 🎉

v0.17.0 🐹

23 Nov 13:52
5af8950
Compare
Choose a tag to compare

This package version is compatible with MeiliSearch v0.24.0

⚠️ Breaking changes

🚀 Enhancements

Thanks again to @Hard-Coder05, @Joel-Nickson, @Thearas, @alallema, @b4sen, @curquiza, @penthaapatel, @roelofjan-elsinga and @theag3nt! 🎉

v0.16.2 🐹

12 Oct 12:12
08be49c
Compare
Choose a tag to compare

This package version is compatible with MeiliSearch v0.23.0

Changes

Thanks again to @PaulKovalov, @alallema, @curquiza, @kashifsoofi, @rizalgowandy and @zinovik! 🎉