Skip to content

Releases: meilisearch/meilisearch-go

v0.25.0 ๐Ÿน

05 Jun 11:57
e6ebf2f
Compare
Choose a tag to compare

Release CHANGELOG:

This version introduces features released on Meilisearch v1.2.0 ๐ŸŽ‰
Check out the changelog of Meilisearch v1.2.0 for more information on the changes.
โš ๏ธ If you want to adopt new features of this release, update the Meilisearch server to the according version.

๐Ÿš€ Enhancements

  • Addition of the method DeleteDocumentsByFilter, this method takes an interface{} which allows you to send different types of filters (string, []string, []interface{}{[]string{}}, ...). The filter field works precisely like the filter field used on the search method. See the docs on how to use filters. #440 @alallema

    โš ๏ธ You must configure the attributes you want to filter using the Index.UpdateFilterableAttributes().
    โš ๏ธ Remember to update your Meilisearch server to v1.2.0 or newer before adopting it.

  • Add the ability to add Filter in the DocumentsQuery. When a query with a filter is sent to getDocuments, it will filter the documents like the search method. See the docs on how to use filters. #439 @alallema

    โš ๏ธ You must configure the attributes you want to filter using the Index.UpdateFilterableAttributes().
    โš ๏ธ Remember to update your Meilisearch server to v1.2.0 or newer before adopting it.

Thanks again to @alallema, @curquiza ! ๐ŸŽ‰

v0.24.0 ๐Ÿน

03 Apr 10:00
9576ecf
Compare
Choose a tag to compare

This version introduces features released on Meilisearch v1.1.0 ๐ŸŽ‰
Check out the changelog of Meilisearch v1.1.0 for more information on the changes.

๐Ÿ› Bug Fixes

โš ๏ธ Breaking changes

  • Add the ability to provide a specific csv-delimiter when adding and updating documents in CSV format (#424) @alallema
    • New type CsvDocumentsQuery{}
    • Changed AddDocumentsCsv() which takes CsvDocumentsQuery as a parameter instead of a ...string
    • Changed AddDocumentsCsvInBatches() which takes CsvDocumentsQuery as a parameter instead of a ...string
    • Changed UpdateDocumentsCsv() which takes CsvDocumentsQuery as a parameter instead of a ...string
    • Changed UpdateDocumentsCsvInBatches() which takes CsvDocumentsQuery as a parameter instead of a ...string

๐Ÿš€ Enhancements

  • Add FacetStats field in SearchResponse (#423) @alallema
  • New method client.MultiSearch() provides the possibility to make multiple requests at once (#422) @alallema

Example:

  client.MultiSearch(&MultiSearchRequest{
    Queries: []SearchRequest{
      {
        IndexUID: "movies",
        Query:    "pooh",
        Limit:    5,
      },
      {
        IndexUID: "movies",
        Query:    "nemo",
        Limit:    5,
      },
      {
        IndexUID: "movie_ratings",
        Query:    "us",
      },
    },
  })

Thanks again to @alallema, @candiduslynx ! ๐ŸŽ‰

v0.23.1 ๐Ÿน

16 Mar 12:22
18e9a55
Compare
Choose a tag to compare

๐Ÿš€ Enhancements

  • Implement UpdateDocument methods for CSV & NdJson (#408) @Azanul
    • UpdateDocumentsCsv
    • UpdateDocumentsCsvInBatches
    • UpdateDocumentsNdjson
    • UpdateDocumentsNdjsonInBatches

๐Ÿ› Bug Fixes

  • Avoid panic when sending (...[]string{}) in AddDocument() (#417) @bestgopher

Thanks again to @Azanul, @alallema, @bestgopher, @brunoocasali! ๐ŸŽ‰

v0.23.0 ๐Ÿน

06 Feb 12:07
44d5e4f
Compare
Choose a tag to compare

This version makes this package compatible with Meilisearch v1.0.0 ๐ŸŽ‰
Check out the changelog of Meilisearch vv1.0.0 for more information on the changes(#405).

โš ๏ธ Breaking changes

  • KeyParsed struct has been changed; this structure is used to manage the time format when creating a key, however, all the Key fields were available in the structure, while only those used to create a key should be available in it.
    • createdAt has been removed
    • updatedAt has been removed

Thanks again to @Thearas, @alallema, @bidoubiwa! ๐ŸŽ‰

v0.22.0 ๐Ÿน

15 Dec 12:44
3811df6
Compare
Choose a tag to compare

This version makes this package compatible with Meilisearch v0.30.0 ๐ŸŽ‰
Check out the changelog of Meilisearch v0.30.0 for more information on the changes(#382).

โš ๏ธ Breaking change

  • Parameters on GetTasks name changes: #390
    • Status -> Statuses
    • IndexUID -> IndexUIDS
    • Type -> Types

๐Ÿš€ Enhancements

  • New pagination strategy with the search parameters Page and HitsPerPage #392
  • New filters on GetTasks: UID, BeforeEnqueuedAt, AfterEnqueuedAt, ... see #390
  • New client.CancelTasks method that lets you cancel enqueued and processing tasks #395
  • New client.DeleteTasks method that lets you delete tasks #396
  • New client.SwapIndexes method that lets you swap two indexes #397
  • New fields on Task.Details #395

Thanks again to @alallema! ๐ŸŽ‰

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, ! ๐ŸŽ‰