Releases: meilisearch/meilisearch-go
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
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 atask
response instead of anIndex
.WaitForPendingUpdate()
is renamed intoWaitForTask
and is accessible fromindex
and fromclient
.- the current
index.WaitForTask()
method call/tasks/:uid
index.GetUpdateStatus
is renamedindex.GetTask
index.GetAllUpdateStatus
is renamedindex.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 anIndex
areclient.Index()
andclient.GetIndex()
- All the actions on indexes are now asynchronous check out the task API references and the asynchronous tasks guide
- Change
client.GetKeys
does not return an object of keys, but aResultKey
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.
- 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
AddDocument
andUpdateDocument
method with variadic parameter (#223) @penthaapatel - Rename
ErrorCode
,ErrorType
andErrorLink
intoCode
,Type
andLink
in 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! 🎉
v0.16.1 🐹
This package version is compatible with MeiliSearch v0.22.0 🎉
Changes
- Add
sort
feature compatibility (#192) @alallema. More about sorting.- Add sortable attributes methods:
get_sortable_attributes
,set_sortable_attributes
,reset_sortable_attributes
. - Add
sort
parameter during search.
- Add sortable attributes methods:
Thanks again to @alallema, @gillesfabio, and @mmachatschek! 🎉
v0.16.0 🐹
This version makes this package compatible with MeiliSearch v0.21.0
🎉 Check out the changelog of MeiliSearch v0.21.0
Changes
- Update
WaitForPendingUpdate
method (#166) @alallema - New fields in dumps routes (#170) @alallema
- Query parameter:
Filter
now allow string and array (#181) @alallema
Breaking changes ⚠️
- Rename
attributes_for_faceting
intofilterable_attributes
(#167) @alallema - Rename
Filters
intoFilter
(#168) @alallema - Rename
FieldDistribution
(#169) @alallema - Rename
buildDate
tocommitDate
(#171) @alallema - Changes related to the next MeiliSearch release (v0.21.0) (#144)
Thanks again to @alallema, @bh90210, @bidoubiwa, and @sirodoht! 🎉
v0.15.0 🐹
Changes
Breaking changes ⚠️
-
Rewriting of the
Client
class. All methods related to the client are now accessible by theClient
object. Intermediate interfaces have been removed. See your Getting Started or the PR for the list of the methods impacted (#150) @alallema -
Rewriting of the
Index
class. All methods related to the index are now accessible by theIndex
like all document-related methods and searches. Intermediate interfaces have been removed. See your Getting Started or the PR for the list of the methods impacted (#150) @alallema -
Introduction of a new method
Index(string uid)
that replacesGetIndex(string uid)
who is still available but does HTTP call before returning the Index. This method should be only used to fetch information from the MeiliSearch instance. See our Getting Started be sure to use this SDK the most optimized way. -
Adding an Error Handler with custom error available: MeiliSearchApiError, MeiliSearchCommunicationError, MeiliSearchTimeoutError. The following attributes are present in the body answer when raising a MeiliSearchApiError: errorCode, errorType, and errorLink. (#158) @alallema
Bug
- Wrong accepted status code on /health
v0.14.1 🐹
Changes
- Add dumps endpoint support (#137) @claudiunicolaa
Thanks again to @claudiunicolaa Claudiu Nicola! 🎉