-
Notifications
You must be signed in to change notification settings - Fork 14
Description
This issue gathers the changes related to the v0.28.0 of Meilisearch that will impact the integrations team.
Release date: July 11, 2022
The whole milestone of v0.28.0 is here!
Changes related to the keys
management
Related to:
- issue: Pagination of the
/keys
ressources meilisearch#2442 - issue: Change of the API key resource meilisearch#2369
All the changes:
GET /keys
has pagination metadata, addedlimit
(default: 20),offset
(default: 0),total
.GET /keys/:uid_or_key
can receive either a:uid
or:key
to find the key, not just the:key
how it used to be.DELETE /keys/:uid_or_key
can receive either a:uid
or:key
to find the key, not just the:key
how it used to be.PATCH /keys/:uid_or_key
can receive either a:uid
or:key
to find the key, not just the:key
how it used to be.- Add the possibility to specify
:uid
to generate deterministic API keys ifnull
Meilisearch generates one. It must be a UUID v4 value. - Add a
:name
attribute to the resource (can be null). - Add new values to the actions attribute:
keys.get
,keys.create
,keys.update
andkeys.delete
. PATCH /keys/:uid_or_key
can update onlyname
anddescription
fields.apiKeyPrefix
claim is now namedapiKeyUid
and expects the uid of the signing API key as a value.ReplacemasterKey
fromREADME.md
Getting started section (and others maybe?) with onlyapiKey
.
Changes related to the HTTP
verbs
Related to:
To be more compliant with the RESTful good practices we must change the following verbs:
PATCH
/indexes/{indexUid}
instead ofPUT
PATCH
/indexes/{indexUid}/settings
instead ofPOST
PATCH
/indexes/{indexUid}/settings/typo-tolerance
instead ofPOST
PUT
/indexes/{indexUid}/settings/displayed-attributes
instead ofPOST
PUT
/indexes/{indexUid}/settings/distinct-attribute
instead ofPOST
PUT
/indexes/{indexUid}/settings/filterable-attributes
instead ofPOST
PUT
/indexes/{indexUid}/settings/ranking-rules
instead ofPOST
PUT
/indexes/{indexUid}/settings/searchable-attributes
instead ofPOST
PUT
/indexes/{indexUid}/settings/sortable-attributes
instead ofPOST
PUT
/indexes/{indexUid}/settings/stop-words
instead ofPOST
PUT
/indexes/{indexUid}/settings/synonyms
instead ofPOST
Changes related to the tasks
resources
Related to:
All the changes:
- Remove
GET /indexes/:indexUid/tasks
. UseGET /tasks?indexUid=:indexUid
instead. - Remove
GET /indexes/:indexUid/tasks/:taskUid
. UseGET /tasks/:taskUid
instead. - Rename
uid
totaskUid
in the202 - Accepted task
response return by every asynchronous tasks (ex: index creation, document addition...) - The field
indexUid
can benull
. - Add pagination to
GET /tasks
based in this specification usinglimit
,from
,next
metadata in the response. - Rename these task types:
documentPartial
->documentAdditionOrUpdate
documentAddition
->documentAdditionOrUpdate
clearAll
->documentDeletion
- Possibility to filter the results:
- In the endpoint
GET /tasks
we can filter by:type
,status
andindexUid
. - We need to join the array values when filter by
status
like this:enqueued,processing
.
- In the endpoint
Changes related to the search
Related to:
All the changes:
- Rename
nbHits
response parameter toestimatedTotalHits
. - Delete
exhaustiveNbHits
response parameter. - Delete
exhaustiveFacetsCount
response parameter. matches
request parameter is renamedshowMatchesPosition
._matchesInfo
response parameter is renamed_matchesPosition
.facetsDistribution
request parameter is renamedfacets
.facetsDistribution
response parameter is renamedfacetDistribution
.
Changes related to the indexes
resources
Related to:
All the changes:
- Remove the
name
field in the index. - Wrap the indexes objects in a
results
key. GET /indexes
has pagination metadata, addedlimit
(default: 20),offset
(default: 0),total
.
Changes related to the documents
resources
Related to:
All the changes:
GET /documents/:uid
,GET /documents
Add the possibility to reduce the body payload by using a query parameter calledfields
(previously calledattributesToRetrieve
), check the issue and the spec for the entire behavior.- Wrap the objects in a
results
key. GET /documents
has pagination metadata, addedlimit
(default: 20),offset
(default: 0),total
.⚠️ ThedisplayedAttributes
settings do not impact anymore the displayed fields returned in the/documents
endpoints. These settings only affect the/search
endpoint.
Changes related to the dumps
resources
Related to:
All the changes:
- Remove code sample
get_dump_status_1
- Remove method get dump status.
- A dump creation now responds with a
task
object from typedumpCreation
. - The error
dump_already_processing
don't need to be handled.
Changes regarding the smart crop
behavior
Related to:
Fix tests regarding two new settings, pagination
and faceting
Related to:
- issue: Add limit of facet value and a setting to let the users customize it meilisearch#2368
- issue: Add settings to customize the maximum number of reachable documents during the search meilisearch#2495
According to the issues above, we must ensure our tests pass after adding the two new settings.
Since we have some tests that rely on the result of the GET /settings
API result, we should make them pass.