Skip to content

Changes regarding Meilisearch v0.30.0 #221

Closed
@brunoocasali

Description

@brunoocasali

This issue gathers the changes related to the v0.30.0 of Meilisearch that will impact the integrations team.

Release date: November 28th, 2022

The whole milestone of v0.30.0 is here!

SDKs which should be finished by November 28th:

  • C# (.NET)
  • Go
  • JavaScript
  • PHP
  • Python
  • Ruby
  • Rust
  • Java
  • Rails after Ruby release
  • Symfony after PHP release
  • DocsScraper after Python release
  • Dart
  • Swift

Add finite pagination in the search results

Related to:

Add the support to the new finite pagination in the /search requests. Check the according to issue and specification for more info.

Implementation references: meilisearch/meilisearch-dotnet#351, meilisearch/meilisearch-php#370, and meilisearch/meilisearch-js#1305


Cancel non-processed tasks with the new method /tasks/cancel

Related to:

Allow users to cancel a processing or an enqueued task.

  • Add new endpoint: POST /tasks/cancel
  • Guarantee all the filters available in the GET /tasks but from and limit are available.
  • Add new task type: taskCancelation
  • Add new API key action: tasks.cancel
  • Add new task status canceled
  • Introduce a new error code missing_task_filters
  • Task error field is set to null by default.
  • EnqueuedTask canceledBy field is set to null by default.
  • New fields in details from Task on taskCancelation task type:
    • matchedTasks
    • canceledTasks
    • originalQuery/originalFilter.

Add/Update filters for /tasks

Add filters for this endpoint:

  • uids filter. e.g /tasks?uids=1,2,3,4
    • error code in case of failure: invalid_task_uids_filter
  • canceledBy filter. e.g /tasks?canceledBy=99,100
    • error code in case of failure: invalid_task_canceled_by_filter
  • beforeEnqueuedAt and afterEnqueuedAt. e.g /tasks?afterEnqueuedAt=2022-01-20&beforeEnqueuedAt=2022-01-23
  • beforeStartedAt and afterStartedAt. e.g /tasks?afterStartedAt=2022-01-20&beforeStartedAt=2022-01-23
  • beforeFinishedAt and afterFinishedAt. e.g /tasks?afterFinishedAt=2022-01-20&beforeFinishedAt=2022-01-23

Rename filters and error codes for this endpoint:

  • indexUid query parameter is renamed indexUids
  • type query parameter is renamed types
  • status query parameter is renamed statuses
  • invalid_task_type error is renamed invalid_task_types_filter
  • invalid_task_status error is renamed invalid_task_statuses_filter

Index name swapping with the new method POST /swap-indexes

Related to:

The goal of this issue is to make Meilisearch more production-ready by allowing the swap of indexes, and this feature should remove the possible downtimes.

  • Add the POST /swap-indexes endpoint
  • Add an indexSwap task type
  • Add an indexes.swap API Key action
  • Add a duplicate_index_found error.
  • Add swaps in Tasks.details

Delete old and processed tasks

Related to:

This issue aims to reduce the users' friction with disk size management by allowing them to delete the old processed tasks.

  • A new endpoint: DELETE /tasks
  • A new task type: taskDeletion
  • Add deletedTasks in field details from Task type when performing taskDeletion
  • A new API key action: tasks.delete
  • Guarantee all the filters available in the GET /tasks but from and limit are available.
  • Add uids filter. e.g /tasks?uids=1,2,3,4 (⚠️ only effective after RC1)
    • error code in case of failure: invalid_task_uids_filter
  • Add canceledBy filter. e.g /tasks?canceledBy=99,100
    • error code in case of failure: invalid_task_canceled_by_filter
  • Add beforeEnqueuedAt and afterEnqueuedAt. e.g /tasks?afterEnqueuedAt=2022-01-20&beforeEnqueuedAt=2022-01-23
  • Add beforeStartedAt and afterStartedAt. e.g /tasks?afterStartedAt=2022-01-20&beforeStartedAt=2022-01-23
  • Add beforeFinishedAt and afterFinishedAt. e.g /tasks?afterFinishedAt=2022-01-20&beforeFinishedAt=2022-01-23

Add new error type missing_master_key

Related to:

⚠️ Especially for strongly typed languages, check all the available error types.


Rename receivedDocumentsIds by matchedDocuments providedIds

Related to:

⚠️ Especially for strongly typed languages, check the details field from the Task type.


Introduce the snapshotCreation task type

⚠️ Especially for strongly typed languages, check the type field of the Task type and add a new entry: snapshotCreation.


Remove batchUid from Task type (from 0.29)

⚠️ Especially for strongly typed languages, remove the presence of batchUid field from the Task type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Meilisearch bumpChanges related to the Meilisearch bump version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions