meilisearch 0.6.1 meilisearch: ^0.6.1 copied to clipboard
Meilisearch Dart is the Meilisearch API client for Dart and Flutter developers.
0.6.0 #
This version makes this package compatible with Meilisearch v0.28.0 and newer
Breaking changes #
MeiliSearchClient#getDumpStatus
method was removed.MeiliSearchClient#getIndexes
method now return a object typeResult<MeiliSearchIndex>
.TaskInfo
,TaskImpl
,ClientTaskImpl
are now justTask
.- The method
getStatus
was removed in the new class.
- The method
MeiliSearchClient#generateTenantToken
now require aString uid
which is theuid
of theKey
instance used to sign the token.MeiliSearchClient#createDump
now responds withTask
.MeiliSearchClient#getKeys
method now return a object typeFuture<Result<Key>>
.MeiliSearchClient#updateKey
now can just update adescription
and/orname
.MeiliSearchClient#getTasks
method now return a object typeFuture<TasksResults>
.MeiliSearchIndex#getTasks
method now return a object typeFuture<TasksResults>
.MeiliSearchIndex#search
facetsDistribution
is nowfacets
MeiliSearchIndex#search
matches
is nowshowMatchesPosition
MeiliSearchIndex#getDocuments
method now return a object typeFuture<Result>
.MeiliSearchIndex#getDocuments
method now accepts a object as a parameter andoffset
,limit
,attributesToRetrieve
were not longer accepted.nbHits
,exhaustiveNbHits
,facetsDistribution
,exhaustiveFacetsCount
were removed fromSearchResult
.- Remove unused generic
T
inMeiliSearchClient#search
method
Changes #
MeiliSearchClient#getIndexes
accepts a objectIndexesQuery
to filter and paginate the results.MeiliSearchClient#getKeys
accepts a objectKeysQuery
to filter and paginate the results.MeiliSearchClient#getKey
accepts both aKey#uid
orKey#key
value.MeiliSearchClient#getTasks
accepts a objectTasksQuery
to filter and paginate the results.MeiliSearchIndex#getTasks
accepts a objectTasksQuery
to filter and paginate the results.MeiliSearchClient#createKey
can specify auid
(optionally) to create a newKey
.MeiliSearchIndex#getDocuments
accepts a objectDocumentsQuery
to filter and paginate the results.Key
has now aname
anduid
string fields.MeiliSearchIndex#getDocument
accepts a list of fields to reduce the final payload.estimatedTotalHits
,facetDistribution
were added toSearchResult
- Sending a invalid
uid
orapiKey
will raiseInvalidApiKeyException
in thegenerateTenantToken
.
0.5.3 #
This version makes this package compatible with Meilisearch v0.27.0 and newer
Changes #
- Ensure nested field support (#157) @brunoocasali
- Add
highlightPreTag
,highlightPostTag
,cropMarker
, parameters in the search request (#156) @brunoocasali - Fix syntax issue in the README (#162) @mafreud
0.5.2 #
-
- 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. (#139) @brunoocasali
- Added new method
0.5.1 #
- Add
User-Agent
header to have analytics in every http request (#129) @brunoocasali
0.5.0 #
This version makes this package compatible with Meilisearch v0.25.0 and newer
Changes #
- Add method to responds with raw information from API
client.getRawIndex
(#124) @brunoocasali - Run a
pub upgrade
in dependencies (#128) @brunoocasali - Add support to keys (according to v0.25.0 spec) more (#121) @brunoocasali
- Create a new resource class
Key
to represent keys - Create methods to support keys:
client.getKeys
client.getKey
client.createKey
client.updateKey
client.deleteKey
- Create a new resource class
- Add PATCH method support (#121) @brunoocasali
- Updates regarding code samples:
- setting guide sortable (#117) @alallema
- added all the changed methods based on the new version v0.25.0 (#126) @brunoocasali
Breaking changes #
- Remove
getOrCreate
fromMeiliSearchClient
(#119) @brunoocasali - Rename
PendingUpdate
toTaskInfo
(#123) @brunoocasali - Meilisearch v0.25.0 uses
Authorization
header instead ofX-Meili-API-Key
(#121) @brunoocasali - Multiple naming changes regarding the v0.25.0 upgrade (#119, #120, #125, #127) @brunoocasali:
client.getUpdateStatus
toclient.getTask
client.getAllUpdateStatus
toclient.getTasks
client.getKeys
responds with aFuture<List<Key>>
notFuture<Map<String, String>>
index.update
,index.delete
,client.createIndex
,client.deleteIndex
andclient.updateIndex
now responds withFuture<TaskInfo>
index.getAllUpdateStatus
toindex.getTasks
index.getUpdateStatus
toindex.getTask
0.4.0 #
- Rename
errorCode
,errorType
anderrorLink
intocode
,type
andlink
in the error handler (#110) @curquiza - Changes related to the next Meilisearch release (v0.24.0) (#109)
0.3.2 #
- Add json content type by default as header to make it compatible with Meilisearch v0.23.0 (#89) @curquiza
0.3.1 #
- Fixed cropLength type (#79) @sanders41
- Fix distinctAttribute in settings (#77) @sanders41
- Changes related to the next Meilisearch release (v0.22.0) (#82)
- Added sortable attributes (#83) @sanders41
- Add
sort
parameter (#84) @curquiza
0.3.0 #
This version makes this package compatible with Meilisearch v0.21.0
Changes #
- Update PendingUpdateX (#62) @alallema
- Adding option to specify a connectTimeout duration (#59) @sanders41
- Adding getKeys method (#66) @sanders41
- Adding dump methods (#67) @sanders41
- Adding getVersion method (#68) @sanders41
- Adding sub-settings methods (#70) @sanders41
- Adding index.getStats and client.getStats methods (#69) @sanders41
- Adding getAllUpdateStatus and getUpdateStatus methods (#73) @sanders41
Breaking changes #
- Rename attributes_for_faceting into filterable_attributes (#61) @alallema
- Rename Filters into Filter (#63) @alallema
- Rename attributes for faceting into filterable attributes (#71) @curquiza
- Changes related to the next Meilisearch release (v0.21.0) (#40)
0.2.1 #
- Changes due to the implicit index creation (#48) @alallema
0.2.0 #
0.1.3 #
- Upgrade dependencies
0.1.2 #
- Fix: Rename facetDistribution into facetsDistribution
0.1.1 #
- Add example project
0.1.0+1 #
- Fix image in pub.dev listing
0.1.0 #
- Initial stable release
- Write unit tests
0.0.3-pre #
- Implemented search endpoints
- Implemented settings endpoints
- Implemented document endpoints
0.0.1-pre #
- Initial pre-release