Releases: meilisearch/meilisearch-go
v0.25.0 ๐น
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.
๐ Enhancements
-
Addition of the method
DeleteDocumentsByFilter
, this method takes aninterface{}
which allows you to send different types of filters (string
,[]string
,[]interface{}{[]string{}}
, ...). Thefilter
field works precisely like thefilter
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 theIndex.UpdateFilterableAttributes()
.
โ ๏ธ Remember to update your Meilisearch server to v1.2.0 or newer before adopting it. -
Add the ability to add
Filter
in theDocumentsQuery
. When a query with afilter
is sent togetDocuments
, it will filter the documents like thesearch
method. See the docs on how to use filters. #439 @alallemaโ ๏ธ You must configure the attributes you want to filter using theIndex.UpdateFilterableAttributes()
.
โ ๏ธ Remember to update your Meilisearch server to v1.2.0 or newer before adopting it.
v0.24.0 ๐น
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
- fix(indexes): Fill in
client
forGetIndexes
results (#426) @candiduslynx
โ ๏ธ 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 takesCsvDocumentsQuery
as a parameter instead of a...string
- Changed
AddDocumentsCsvInBatches()
which takesCsvDocumentsQuery
as a parameter instead of a...string
- Changed
UpdateDocumentsCsv()
which takesCsvDocumentsQuery
as a parameter instead of a...string
- Changed
UpdateDocumentsCsvInBatches()
which takesCsvDocumentsQuery
as a parameter instead of a...string
- New type
๐ 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 ๐น
๐ Enhancements
- Implement
UpdateDocument
methods for CSV & NdJson (#408) @AzanulUpdateDocumentsCsv
UpdateDocumentsCsvInBatches
UpdateDocumentsNdjson
UpdateDocumentsNdjsonInBatches
๐ Bug Fixes
- Avoid panic when sending
(...[]string{})
inAddDocument()
(#417) @bestgopher
Thanks again to @Azanul, @alallema, @bestgopher, @brunoocasali! ๐
v0.23.0 ๐น
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 removedupdatedAt
has been removed
Thanks again to @Thearas, @alallema, @bidoubiwa! ๐
v0.22.0 ๐น
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: #390Status
->Statuses
IndexUID
->IndexUIDS
Type
->Types
๐ Enhancements
- New
pagination
strategy with the search parametersPage
andHitsPerPage
#392 - New filters on
GetTasks
:UID
,BeforeEnqueuedAt
,AfterEnqueuedAt
, ... see #390 - New
client.CancelTasks
method that lets you cancelenqueued
andprocessing
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 ๐น
๐ 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
NOT
filter keyword does not have an implicitlyEXIST
operator anymore. Check out for more information: meilisearch/meilisearch#2486 - Remove
All
from the methods name (#356) @vishalsodani
๐ Enhancements
- Improve Docker configuration in the package (#301)
- Create key: Add ability to specify the
Uid
andName
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 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.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 ! ๐
v0.19.2 ๐น
๐ Bug Fixes
Thanks again to @Thearas, @alallema, @arnemolland, ! ๐