- 
                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 /keysressources meilisearch#2442
- issue: Change of the API key resource meilisearch#2369
All the changes:
- GET /keyshas pagination metadata, added- limit(default: 20),- offset(default: 0),- total.
- GET /keys/:uid_or_keycan receive either a- :uidor- :keyto find the key, not just the- :keyhow it used to be.
- DELETE /keys/:uid_or_keycan receive either a- :uidor- :keyto find the key, not just the- :keyhow it used to be.
- PATCH /keys/:uid_or_keycan receive either a- :uidor- :keyto find the key, not just the- :keyhow it used to be.
- Add the possibility to specify :uidto generate deterministic API keys ifnullMeilisearch generates one. It must be a UUID v4 value.
- Add a :nameattribute to the resource (can be null).
- Add new values to the actions attribute: keys.get,keys.create,keys.updateandkeys.delete.
- PATCH /keys/:uid_or_keycan update only- nameand- descriptionfields.
- apiKeyPrefixclaim is now named- apiKeyUidand expects the uid of the signing API key as a value.
- Replace- masterKeyfrom- README.mdGetting started section (and others maybe?) with only- apiKey.
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 of- PUT
- PATCH- /indexes/{indexUid}/settingsinstead of- POST
- PATCH- /indexes/{indexUid}/settings/typo-toleranceinstead of- POST
- PUT- /indexes/{indexUid}/settings/displayed-attributesinstead of- POST
- PUT- /indexes/{indexUid}/settings/distinct-attributeinstead of- POST
- PUT- /indexes/{indexUid}/settings/filterable-attributesinstead of- POST
- PUT- /indexes/{indexUid}/settings/ranking-rulesinstead of- POST
- PUT- /indexes/{indexUid}/settings/searchable-attributesinstead of- POST
- PUT- /indexes/{indexUid}/settings/sortable-attributesinstead of- POST
- PUT- /indexes/{indexUid}/settings/stop-wordsinstead of- POST
- PUT- /indexes/{indexUid}/settings/synonymsinstead of- POST
Changes related to the tasks resources
Related to:
All the changes:
- Remove GET /indexes/:indexUid/tasks. UseGET /tasks?indexUid=:indexUidinstead.
- Remove GET /indexes/:indexUid/tasks/:taskUid. UseGET /tasks/:taskUidinstead.
- Rename uidtotaskUidin the202 - Accepted taskresponse return by every asynchronous tasks (ex: index creation, document addition...)
- The field indexUidcan benull.
- Add pagination to GET /tasksbased in this specification usinglimit,from,nextmetadata in the response.
- Rename these task types:
- documentPartial->- documentAdditionOrUpdate
- documentAddition->- documentAdditionOrUpdate
- clearAll->- documentDeletion
 
- Possibility to filter the results:
- In the endpoint GET /taskswe can filter by:type,statusandindexUid.
- We need to join the array values when filter by statuslike this:enqueued,processing.
 
- In the endpoint 
Changes related to the search
Related to:
All the changes:
- Rename nbHitsresponse parameter toestimatedTotalHits.
- Delete exhaustiveNbHitsresponse parameter.
- Delete exhaustiveFacetsCountresponse parameter.
- matchesrequest parameter is renamed- showMatchesPosition.
- _matchesInforesponse parameter is renamed- _matchesPosition.
- facetsDistributionrequest parameter is renamed- facets.
- facetsDistributionresponse parameter is renamed- facetDistribution.
Changes related to the indexes resources
Related to:
All the changes:
- Remove the namefield in the index.
- Wrap the indexes objects in a resultskey.
- GET /indexeshas pagination metadata, added- limit(default: 20),- offset(default: 0),- total.
Changes related to the documents resources
Related to:
All the changes:
- GET /documents/:uid,- GET /documentsAdd the possibility to reduce the body payload by using a query parameter called- fields(previously called- attributesToRetrieve), check the issue and the spec for the entire behavior.
- Wrap the objects in a resultskey.
- GET /documentshas pagination metadata, added- limit(default: 20),- offset(default: 0),- total.
- ⚠️ The- displayedAttributessettings do not impact anymore the displayed fields returned in the- /documentsendpoints. These settings only affect the- /searchendpoint.
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 taskobject from typedumpCreation.
- The error dump_already_processingdon'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.