diff --git a/crates/meilisearch/db.snapshot b/crates/meilisearch/db.snapshot index 3cec193fb..8eb692ecd 100644 Binary files a/crates/meilisearch/db.snapshot and b/crates/meilisearch/db.snapshot differ diff --git a/crates/meilisearch/tests/upgrade/v1_12/snapshots/v1_12_0.rs/check_the_index_features/search_with_sort_and_filter.snap b/crates/meilisearch/tests/upgrade/v1_12/snapshots/v1_12_0.rs/check_the_index_features/search_with_sort_and_filter.snap index 8afff3e0c..11ebae310 100644 --- a/crates/meilisearch/tests/upgrade/v1_12/snapshots/v1_12_0.rs/check_the_index_features/search_with_sort_and_filter.snap +++ b/crates/meilisearch/tests/upgrade/v1_12/snapshots/v1_12_0.rs/check_the_index_features/search_with_sort_and_filter.snap @@ -13,7 +13,7 @@ snapshot_kind: text "kefirounet", "boubou" ], - "age": 1.3, + "age": 1.4, "description": "kefir est un petit chien blanc très mignon" } ], diff --git a/crates/meilisearch/tests/upgrade/v1_12/snapshots/v1_12_0.rs/check_the_index_scheduler/batches_filter_afterEnqueuedAt_equal_2025-01-16T16:47:41.snap b/crates/meilisearch/tests/upgrade/v1_12/snapshots/v1_12_0.rs/check_the_index_scheduler/batches_filter_afterEnqueuedAt_equal_2025-01-16T16:47:41.snap index 397be0317..ef12003c3 100644 --- a/crates/meilisearch/tests/upgrade/v1_12/snapshots/v1_12_0.rs/check_the_index_scheduler/batches_filter_afterEnqueuedAt_equal_2025-01-16T16:47:41.snap +++ b/crates/meilisearch/tests/upgrade/v1_12/snapshots/v1_12_0.rs/check_the_index_scheduler/batches_filter_afterEnqueuedAt_equal_2025-01-16T16:47:41.snap @@ -5,7 +5,7 @@ snapshot_kind: text { "results": [ { - "uid": 20, + "uid": 24, "progress": null, "details": { "upgradeFrom": "v1.12.0", @@ -25,6 +25,97 @@ snapshot_kind: text "startedAt": "[date]", "finishedAt": "[date]" }, + { + "uid": 23, + "progress": null, + "details": { + "deletedDocuments": 0 + }, + "stats": { + "totalNbTasks": 1, + "status": { + "succeeded": 1 + }, + "types": { + "indexDeletion": 1 + }, + "indexUids": { + "mieli": 1 + } + }, + "duration": "PT0.004146631S", + "startedAt": "2025-01-23T11:38:57.012591321Z", + "finishedAt": "2025-01-23T11:38:57.016737952Z" + }, + { + "uid": 22, + "progress": null, + "details": { + "receivedDocuments": 1, + "indexedDocuments": 1 + }, + "stats": { + "totalNbTasks": 1, + "status": { + "succeeded": 1 + }, + "types": { + "documentAdditionOrUpdate": 1 + }, + "indexUids": { + "kefir": 1 + } + }, + "duration": "PT0.102738497S", + "startedAt": "2025-01-23T11:36:22.551906856Z", + "finishedAt": "2025-01-23T11:36:22.654645353Z" + }, + { + "uid": 21, + "progress": null, + "details": { + "receivedDocuments": 1, + "indexedDocuments": 0 + }, + "stats": { + "totalNbTasks": 1, + "status": { + "failed": 1 + }, + "types": { + "documentAdditionOrUpdate": 1 + }, + "indexUids": { + "kefir": 1 + } + }, + "duration": "PT0.005108474S", + "startedAt": "2025-01-23T11:36:04.132670526Z", + "finishedAt": "2025-01-23T11:36:04.137779Z" + }, + { + "uid": 20, + "progress": null, + "details": { + "receivedDocuments": 1, + "indexedDocuments": 0 + }, + "stats": { + "totalNbTasks": 1, + "status": { + "failed": 1 + }, + "types": { + "documentAdditionOrUpdate": 1 + }, + "indexUids": { + "mieli": 1 + } + }, + "duration": "PT0.027954894S", + "startedAt": "2025-01-23T11:35:53.631082795Z", + "finishedAt": "2025-01-23T11:35:53.659037689Z" + }, { "uid": 19, "progress": null, @@ -406,82 +497,10 @@ snapshot_kind: text "duration": "PT0.016307263S", "startedAt": "2025-01-16T16:53:19.913351957Z", "finishedAt": "2025-01-16T16:53:19.92965922Z" - }, - { - "uid": 4, - "progress": null, - "details": { - "receivedDocuments": 1, - "indexedDocuments": 1 - }, - "stats": { - "totalNbTasks": 1, - "status": { - "succeeded": 1 - }, - "types": { - "documentAdditionOrUpdate": 1 - }, - "indexUids": { - "kefir": 1 - } - }, - "duration": "PT0.087655941S", - "startedAt": "2025-01-16T16:52:32.631145531Z", - "finishedAt": "2025-01-16T16:52:32.718801472Z" - }, - { - "uid": 3, - "progress": null, - "details": { - "sortableAttributes": [ - "age" - ] - }, - "stats": { - "totalNbTasks": 1, - "status": { - "succeeded": 1 - }, - "types": { - "settingsUpdate": 1 - }, - "indexUids": { - "kefir": 1 - } - }, - "duration": "PT0.007593573S", - "startedAt": "2025-01-16T16:47:53.677901409Z", - "finishedAt": "2025-01-16T16:47:53.685494982Z" - }, - { - "uid": 2, - "progress": null, - "details": { - "filterableAttributes": [ - "age", - "surname" - ] - }, - "stats": { - "totalNbTasks": 1, - "status": { - "succeeded": 1 - }, - "types": { - "settingsUpdate": 1 - }, - "indexUids": { - "kefir": 1 - } - }, - "duration": "PT0.017769760S", - "startedAt": "2025-01-16T16:47:41.211587682Z", - "finishedAt": "2025-01-16T16:47:41.229357442Z" } ], - "total": 19, + "total": 23, "limit": 20, - "from": 20, - "next": null + "from": 24, + "next": 4 } diff --git a/crates/meilisearch/tests/upgrade/v1_12/snapshots/v1_12_0.rs/check_the_index_scheduler/batches_filter_afterFinishedAt_equal_2025-01-16T16:47:41.snap b/crates/meilisearch/tests/upgrade/v1_12/snapshots/v1_12_0.rs/check_the_index_scheduler/batches_filter_afterFinishedAt_equal_2025-01-16T16:47:41.snap index 397be0317..ef12003c3 100644 --- a/crates/meilisearch/tests/upgrade/v1_12/snapshots/v1_12_0.rs/check_the_index_scheduler/batches_filter_afterFinishedAt_equal_2025-01-16T16:47:41.snap +++ b/crates/meilisearch/tests/upgrade/v1_12/snapshots/v1_12_0.rs/check_the_index_scheduler/batches_filter_afterFinishedAt_equal_2025-01-16T16:47:41.snap @@ -5,7 +5,7 @@ snapshot_kind: text { "results": [ { - "uid": 20, + "uid": 24, "progress": null, "details": { "upgradeFrom": "v1.12.0", @@ -25,6 +25,97 @@ snapshot_kind: text "startedAt": "[date]", "finishedAt": "[date]" }, + { + "uid": 23, + "progress": null, + "details": { + "deletedDocuments": 0 + }, + "stats": { + "totalNbTasks": 1, + "status": { + "succeeded": 1 + }, + "types": { + "indexDeletion": 1 + }, + "indexUids": { + "mieli": 1 + } + }, + "duration": "PT0.004146631S", + "startedAt": "2025-01-23T11:38:57.012591321Z", + "finishedAt": "2025-01-23T11:38:57.016737952Z" + }, + { + "uid": 22, + "progress": null, + "details": { + "receivedDocuments": 1, + "indexedDocuments": 1 + }, + "stats": { + "totalNbTasks": 1, + "status": { + "succeeded": 1 + }, + "types": { + "documentAdditionOrUpdate": 1 + }, + "indexUids": { + "kefir": 1 + } + }, + "duration": "PT0.102738497S", + "startedAt": "2025-01-23T11:36:22.551906856Z", + "finishedAt": "2025-01-23T11:36:22.654645353Z" + }, + { + "uid": 21, + "progress": null, + "details": { + "receivedDocuments": 1, + "indexedDocuments": 0 + }, + "stats": { + "totalNbTasks": 1, + "status": { + "failed": 1 + }, + "types": { + "documentAdditionOrUpdate": 1 + }, + "indexUids": { + "kefir": 1 + } + }, + "duration": "PT0.005108474S", + "startedAt": "2025-01-23T11:36:04.132670526Z", + "finishedAt": "2025-01-23T11:36:04.137779Z" + }, + { + "uid": 20, + "progress": null, + "details": { + "receivedDocuments": 1, + "indexedDocuments": 0 + }, + "stats": { + "totalNbTasks": 1, + "status": { + "failed": 1 + }, + "types": { + "documentAdditionOrUpdate": 1 + }, + "indexUids": { + "mieli": 1 + } + }, + "duration": "PT0.027954894S", + "startedAt": "2025-01-23T11:35:53.631082795Z", + "finishedAt": "2025-01-23T11:35:53.659037689Z" + }, { "uid": 19, "progress": null, @@ -406,82 +497,10 @@ snapshot_kind: text "duration": "PT0.016307263S", "startedAt": "2025-01-16T16:53:19.913351957Z", "finishedAt": "2025-01-16T16:53:19.92965922Z" - }, - { - "uid": 4, - "progress": null, - "details": { - "receivedDocuments": 1, - "indexedDocuments": 1 - }, - "stats": { - "totalNbTasks": 1, - "status": { - "succeeded": 1 - }, - "types": { - "documentAdditionOrUpdate": 1 - }, - "indexUids": { - "kefir": 1 - } - }, - "duration": "PT0.087655941S", - "startedAt": "2025-01-16T16:52:32.631145531Z", - "finishedAt": "2025-01-16T16:52:32.718801472Z" - }, - { - "uid": 3, - "progress": null, - "details": { - "sortableAttributes": [ - "age" - ] - }, - "stats": { - "totalNbTasks": 1, - "status": { - "succeeded": 1 - }, - "types": { - "settingsUpdate": 1 - }, - "indexUids": { - "kefir": 1 - } - }, - "duration": "PT0.007593573S", - "startedAt": "2025-01-16T16:47:53.677901409Z", - "finishedAt": "2025-01-16T16:47:53.685494982Z" - }, - { - "uid": 2, - "progress": null, - "details": { - "filterableAttributes": [ - "age", - "surname" - ] - }, - "stats": { - "totalNbTasks": 1, - "status": { - "succeeded": 1 - }, - "types": { - "settingsUpdate": 1 - }, - "indexUids": { - "kefir": 1 - } - }, - "duration": "PT0.017769760S", - "startedAt": "2025-01-16T16:47:41.211587682Z", - "finishedAt": "2025-01-16T16:47:41.229357442Z" } ], - "total": 19, + "total": 23, "limit": 20, - "from": 20, - "next": null + "from": 24, + "next": 4 } diff --git a/crates/meilisearch/tests/upgrade/v1_12/snapshots/v1_12_0.rs/check_the_index_scheduler/batches_filter_afterStartedAt_equal_2025-01-16T16:47:41.snap b/crates/meilisearch/tests/upgrade/v1_12/snapshots/v1_12_0.rs/check_the_index_scheduler/batches_filter_afterStartedAt_equal_2025-01-16T16:47:41.snap index 397be0317..ef12003c3 100644 --- a/crates/meilisearch/tests/upgrade/v1_12/snapshots/v1_12_0.rs/check_the_index_scheduler/batches_filter_afterStartedAt_equal_2025-01-16T16:47:41.snap +++ b/crates/meilisearch/tests/upgrade/v1_12/snapshots/v1_12_0.rs/check_the_index_scheduler/batches_filter_afterStartedAt_equal_2025-01-16T16:47:41.snap @@ -5,7 +5,7 @@ snapshot_kind: text { "results": [ { - "uid": 20, + "uid": 24, "progress": null, "details": { "upgradeFrom": "v1.12.0", @@ -25,6 +25,97 @@ snapshot_kind: text "startedAt": "[date]", "finishedAt": "[date]" }, + { + "uid": 23, + "progress": null, + "details": { + "deletedDocuments": 0 + }, + "stats": { + "totalNbTasks": 1, + "status": { + "succeeded": 1 + }, + "types": { + "indexDeletion": 1 + }, + "indexUids": { + "mieli": 1 + } + }, + "duration": "PT0.004146631S", + "startedAt": "2025-01-23T11:38:57.012591321Z", + "finishedAt": "2025-01-23T11:38:57.016737952Z" + }, + { + "uid": 22, + "progress": null, + "details": { + "receivedDocuments": 1, + "indexedDocuments": 1 + }, + "stats": { + "totalNbTasks": 1, + "status": { + "succeeded": 1 + }, + "types": { + "documentAdditionOrUpdate": 1 + }, + "indexUids": { + "kefir": 1 + } + }, + "duration": "PT0.102738497S", + "startedAt": "2025-01-23T11:36:22.551906856Z", + "finishedAt": "2025-01-23T11:36:22.654645353Z" + }, + { + "uid": 21, + "progress": null, + "details": { + "receivedDocuments": 1, + "indexedDocuments": 0 + }, + "stats": { + "totalNbTasks": 1, + "status": { + "failed": 1 + }, + "types": { + "documentAdditionOrUpdate": 1 + }, + "indexUids": { + "kefir": 1 + } + }, + "duration": "PT0.005108474S", + "startedAt": "2025-01-23T11:36:04.132670526Z", + "finishedAt": "2025-01-23T11:36:04.137779Z" + }, + { + "uid": 20, + "progress": null, + "details": { + "receivedDocuments": 1, + "indexedDocuments": 0 + }, + "stats": { + "totalNbTasks": 1, + "status": { + "failed": 1 + }, + "types": { + "documentAdditionOrUpdate": 1 + }, + "indexUids": { + "mieli": 1 + } + }, + "duration": "PT0.027954894S", + "startedAt": "2025-01-23T11:35:53.631082795Z", + "finishedAt": "2025-01-23T11:35:53.659037689Z" + }, { "uid": 19, "progress": null, @@ -406,82 +497,10 @@ snapshot_kind: text "duration": "PT0.016307263S", "startedAt": "2025-01-16T16:53:19.913351957Z", "finishedAt": "2025-01-16T16:53:19.92965922Z" - }, - { - "uid": 4, - "progress": null, - "details": { - "receivedDocuments": 1, - "indexedDocuments": 1 - }, - "stats": { - "totalNbTasks": 1, - "status": { - "succeeded": 1 - }, - "types": { - "documentAdditionOrUpdate": 1 - }, - "indexUids": { - "kefir": 1 - } - }, - "duration": "PT0.087655941S", - "startedAt": "2025-01-16T16:52:32.631145531Z", - "finishedAt": "2025-01-16T16:52:32.718801472Z" - }, - { - "uid": 3, - "progress": null, - "details": { - "sortableAttributes": [ - "age" - ] - }, - "stats": { - "totalNbTasks": 1, - "status": { - "succeeded": 1 - }, - "types": { - "settingsUpdate": 1 - }, - "indexUids": { - "kefir": 1 - } - }, - "duration": "PT0.007593573S", - "startedAt": "2025-01-16T16:47:53.677901409Z", - "finishedAt": "2025-01-16T16:47:53.685494982Z" - }, - { - "uid": 2, - "progress": null, - "details": { - "filterableAttributes": [ - "age", - "surname" - ] - }, - "stats": { - "totalNbTasks": 1, - "status": { - "succeeded": 1 - }, - "types": { - "settingsUpdate": 1 - }, - "indexUids": { - "kefir": 1 - } - }, - "duration": "PT0.017769760S", - "startedAt": "2025-01-16T16:47:41.211587682Z", - "finishedAt": "2025-01-16T16:47:41.229357442Z" } ], - "total": 19, + "total": 23, "limit": 20, - "from": 20, - "next": null + "from": 24, + "next": 4 } diff --git a/crates/meilisearch/tests/upgrade/v1_12/snapshots/v1_12_0.rs/check_the_index_scheduler/tasks_filter_afterEnqueuedAt_equal_2025-01-16T16:47:41.snap b/crates/meilisearch/tests/upgrade/v1_12/snapshots/v1_12_0.rs/check_the_index_scheduler/tasks_filter_afterEnqueuedAt_equal_2025-01-16T16:47:41.snap index 9eaabc8d2..8744b569b 100644 --- a/crates/meilisearch/tests/upgrade/v1_12/snapshots/v1_12_0.rs/check_the_index_scheduler/tasks_filter_afterEnqueuedAt_equal_2025-01-16T16:47:41.snap +++ b/crates/meilisearch/tests/upgrade/v1_12/snapshots/v1_12_0.rs/check_the_index_scheduler/tasks_filter_afterEnqueuedAt_equal_2025-01-16T16:47:41.snap @@ -5,8 +5,8 @@ snapshot_kind: text { "results": [ { - "uid": 21, - "batchUid": 20, + "uid": 25, + "batchUid": 24, "indexUid": null, "status": "succeeded", "type": "upgradeDatabase", @@ -21,6 +21,83 @@ snapshot_kind: text "startedAt": "[date]", "finishedAt": "[date]" }, + { + "uid": 24, + "batchUid": 23, + "indexUid": "mieli", + "status": "succeeded", + "type": "indexDeletion", + "canceledBy": null, + "details": { + "deletedDocuments": 0 + }, + "error": null, + "duration": "PT0.004146631S", + "enqueuedAt": "2025-01-23T11:38:57.000009177Z", + "startedAt": "2025-01-23T11:38:57.012591321Z", + "finishedAt": "2025-01-23T11:38:57.016737952Z" + }, + { + "uid": 23, + "batchUid": 22, + "indexUid": "kefir", + "status": "succeeded", + "type": "documentAdditionOrUpdate", + "canceledBy": null, + "details": { + "receivedDocuments": 1, + "indexedDocuments": 1 + }, + "error": null, + "duration": "PT0.102738497S", + "enqueuedAt": "2025-01-23T11:36:22.53917994Z", + "startedAt": "2025-01-23T11:36:22.551906856Z", + "finishedAt": "2025-01-23T11:36:22.654645353Z" + }, + { + "uid": 22, + "batchUid": 21, + "indexUid": "kefir", + "status": "failed", + "type": "documentAdditionOrUpdate", + "canceledBy": null, + "details": { + "receivedDocuments": 1, + "indexedDocuments": 0 + }, + "error": { + "message": "Document doesn't have a `id` attribute: `{\"age\":1.4}`.", + "code": "missing_document_id", + "type": "invalid_request", + "link": "https://docs.meilisearch.com/errors#missing_document_id" + }, + "duration": "PT0.005108474S", + "enqueuedAt": "2025-01-23T11:36:04.115475071Z", + "startedAt": "2025-01-23T11:36:04.132670526Z", + "finishedAt": "2025-01-23T11:36:04.137779Z" + }, + { + "uid": 21, + "batchUid": 20, + "indexUid": "mieli", + "status": "failed", + "type": "documentAdditionOrUpdate", + "canceledBy": null, + "details": { + "receivedDocuments": 1, + "indexedDocuments": 0 + }, + "error": { + "message": "The primary key inference failed as the engine did not find any field ending with `id` in its name. Please specify the primary key manually using the `primaryKey` query parameter.", + "code": "index_primary_key_no_candidate_found", + "type": "invalid_request", + "link": "https://docs.meilisearch.com/errors#index_primary_key_no_candidate_found" + }, + "duration": "PT0.027954894S", + "enqueuedAt": "2025-01-23T11:35:53.625718309Z", + "startedAt": "2025-01-23T11:35:53.631082795Z", + "finishedAt": "2025-01-23T11:35:53.659037689Z" + }, { "uid": 20, "batchUid": 19, @@ -312,83 +389,10 @@ snapshot_kind: text "enqueuedAt": "2025-01-16T16:54:51.927866243Z", "startedAt": "2025-01-16T16:54:51.940332781Z", "finishedAt": "2025-01-16T16:54:51.947897942Z" - }, - { - "uid": 5, - "batchUid": 5, - "indexUid": "kefir", - "status": "succeeded", - "type": "settingsUpdate", - "canceledBy": null, - "details": { - "stopWords": [ - "le", - "un" - ] - }, - "error": null, - "duration": "PT0.016307263S", - "enqueuedAt": "2025-01-16T16:53:19.900781991Z", - "startedAt": "2025-01-16T16:53:19.913351957Z", - "finishedAt": "2025-01-16T16:53:19.92965922Z" - }, - { - "uid": 4, - "batchUid": 4, - "indexUid": "kefir", - "status": "succeeded", - "type": "documentAdditionOrUpdate", - "canceledBy": null, - "details": { - "receivedDocuments": 1, - "indexedDocuments": 1 - }, - "error": null, - "duration": "PT0.087655941S", - "enqueuedAt": "2025-01-16T16:52:32.618659861Z", - "startedAt": "2025-01-16T16:52:32.631145531Z", - "finishedAt": "2025-01-16T16:52:32.718801472Z" - }, - { - "uid": 3, - "batchUid": 3, - "indexUid": "kefir", - "status": "succeeded", - "type": "settingsUpdate", - "canceledBy": null, - "details": { - "sortableAttributes": [ - "age" - ] - }, - "error": null, - "duration": "PT0.007593573S", - "enqueuedAt": "2025-01-16T16:47:53.665616298Z", - "startedAt": "2025-01-16T16:47:53.677901409Z", - "finishedAt": "2025-01-16T16:47:53.685494982Z" - }, - { - "uid": 2, - "batchUid": 2, - "indexUid": "kefir", - "status": "succeeded", - "type": "settingsUpdate", - "canceledBy": null, - "details": { - "filterableAttributes": [ - "age", - "surname" - ] - }, - "error": null, - "duration": "PT0.017769760S", - "enqueuedAt": "2025-01-16T16:47:41.194872913Z", - "startedAt": "2025-01-16T16:47:41.211587682Z", - "finishedAt": "2025-01-16T16:47:41.229357442Z" } ], - "total": 20, + "total": 24, "limit": 20, - "from": 21, - "next": null + "from": 25, + "next": 5 } diff --git a/crates/meilisearch/tests/upgrade/v1_12/snapshots/v1_12_0.rs/check_the_index_scheduler/tasks_filter_afterFinishedAt_equal_2025-01-16T16:47:41.snap b/crates/meilisearch/tests/upgrade/v1_12/snapshots/v1_12_0.rs/check_the_index_scheduler/tasks_filter_afterFinishedAt_equal_2025-01-16T16:47:41.snap index 9eaabc8d2..8744b569b 100644 --- a/crates/meilisearch/tests/upgrade/v1_12/snapshots/v1_12_0.rs/check_the_index_scheduler/tasks_filter_afterFinishedAt_equal_2025-01-16T16:47:41.snap +++ b/crates/meilisearch/tests/upgrade/v1_12/snapshots/v1_12_0.rs/check_the_index_scheduler/tasks_filter_afterFinishedAt_equal_2025-01-16T16:47:41.snap @@ -5,8 +5,8 @@ snapshot_kind: text { "results": [ { - "uid": 21, - "batchUid": 20, + "uid": 25, + "batchUid": 24, "indexUid": null, "status": "succeeded", "type": "upgradeDatabase", @@ -21,6 +21,83 @@ snapshot_kind: text "startedAt": "[date]", "finishedAt": "[date]" }, + { + "uid": 24, + "batchUid": 23, + "indexUid": "mieli", + "status": "succeeded", + "type": "indexDeletion", + "canceledBy": null, + "details": { + "deletedDocuments": 0 + }, + "error": null, + "duration": "PT0.004146631S", + "enqueuedAt": "2025-01-23T11:38:57.000009177Z", + "startedAt": "2025-01-23T11:38:57.012591321Z", + "finishedAt": "2025-01-23T11:38:57.016737952Z" + }, + { + "uid": 23, + "batchUid": 22, + "indexUid": "kefir", + "status": "succeeded", + "type": "documentAdditionOrUpdate", + "canceledBy": null, + "details": { + "receivedDocuments": 1, + "indexedDocuments": 1 + }, + "error": null, + "duration": "PT0.102738497S", + "enqueuedAt": "2025-01-23T11:36:22.53917994Z", + "startedAt": "2025-01-23T11:36:22.551906856Z", + "finishedAt": "2025-01-23T11:36:22.654645353Z" + }, + { + "uid": 22, + "batchUid": 21, + "indexUid": "kefir", + "status": "failed", + "type": "documentAdditionOrUpdate", + "canceledBy": null, + "details": { + "receivedDocuments": 1, + "indexedDocuments": 0 + }, + "error": { + "message": "Document doesn't have a `id` attribute: `{\"age\":1.4}`.", + "code": "missing_document_id", + "type": "invalid_request", + "link": "https://docs.meilisearch.com/errors#missing_document_id" + }, + "duration": "PT0.005108474S", + "enqueuedAt": "2025-01-23T11:36:04.115475071Z", + "startedAt": "2025-01-23T11:36:04.132670526Z", + "finishedAt": "2025-01-23T11:36:04.137779Z" + }, + { + "uid": 21, + "batchUid": 20, + "indexUid": "mieli", + "status": "failed", + "type": "documentAdditionOrUpdate", + "canceledBy": null, + "details": { + "receivedDocuments": 1, + "indexedDocuments": 0 + }, + "error": { + "message": "The primary key inference failed as the engine did not find any field ending with `id` in its name. Please specify the primary key manually using the `primaryKey` query parameter.", + "code": "index_primary_key_no_candidate_found", + "type": "invalid_request", + "link": "https://docs.meilisearch.com/errors#index_primary_key_no_candidate_found" + }, + "duration": "PT0.027954894S", + "enqueuedAt": "2025-01-23T11:35:53.625718309Z", + "startedAt": "2025-01-23T11:35:53.631082795Z", + "finishedAt": "2025-01-23T11:35:53.659037689Z" + }, { "uid": 20, "batchUid": 19, @@ -312,83 +389,10 @@ snapshot_kind: text "enqueuedAt": "2025-01-16T16:54:51.927866243Z", "startedAt": "2025-01-16T16:54:51.940332781Z", "finishedAt": "2025-01-16T16:54:51.947897942Z" - }, - { - "uid": 5, - "batchUid": 5, - "indexUid": "kefir", - "status": "succeeded", - "type": "settingsUpdate", - "canceledBy": null, - "details": { - "stopWords": [ - "le", - "un" - ] - }, - "error": null, - "duration": "PT0.016307263S", - "enqueuedAt": "2025-01-16T16:53:19.900781991Z", - "startedAt": "2025-01-16T16:53:19.913351957Z", - "finishedAt": "2025-01-16T16:53:19.92965922Z" - }, - { - "uid": 4, - "batchUid": 4, - "indexUid": "kefir", - "status": "succeeded", - "type": "documentAdditionOrUpdate", - "canceledBy": null, - "details": { - "receivedDocuments": 1, - "indexedDocuments": 1 - }, - "error": null, - "duration": "PT0.087655941S", - "enqueuedAt": "2025-01-16T16:52:32.618659861Z", - "startedAt": "2025-01-16T16:52:32.631145531Z", - "finishedAt": "2025-01-16T16:52:32.718801472Z" - }, - { - "uid": 3, - "batchUid": 3, - "indexUid": "kefir", - "status": "succeeded", - "type": "settingsUpdate", - "canceledBy": null, - "details": { - "sortableAttributes": [ - "age" - ] - }, - "error": null, - "duration": "PT0.007593573S", - "enqueuedAt": "2025-01-16T16:47:53.665616298Z", - "startedAt": "2025-01-16T16:47:53.677901409Z", - "finishedAt": "2025-01-16T16:47:53.685494982Z" - }, - { - "uid": 2, - "batchUid": 2, - "indexUid": "kefir", - "status": "succeeded", - "type": "settingsUpdate", - "canceledBy": null, - "details": { - "filterableAttributes": [ - "age", - "surname" - ] - }, - "error": null, - "duration": "PT0.017769760S", - "enqueuedAt": "2025-01-16T16:47:41.194872913Z", - "startedAt": "2025-01-16T16:47:41.211587682Z", - "finishedAt": "2025-01-16T16:47:41.229357442Z" } ], - "total": 20, + "total": 24, "limit": 20, - "from": 21, - "next": null + "from": 25, + "next": 5 } diff --git a/crates/meilisearch/tests/upgrade/v1_12/snapshots/v1_12_0.rs/check_the_index_scheduler/tasks_filter_afterStartedAt_equal_2025-01-16T16:47:41.snap b/crates/meilisearch/tests/upgrade/v1_12/snapshots/v1_12_0.rs/check_the_index_scheduler/tasks_filter_afterStartedAt_equal_2025-01-16T16:47:41.snap index 9eaabc8d2..8744b569b 100644 --- a/crates/meilisearch/tests/upgrade/v1_12/snapshots/v1_12_0.rs/check_the_index_scheduler/tasks_filter_afterStartedAt_equal_2025-01-16T16:47:41.snap +++ b/crates/meilisearch/tests/upgrade/v1_12/snapshots/v1_12_0.rs/check_the_index_scheduler/tasks_filter_afterStartedAt_equal_2025-01-16T16:47:41.snap @@ -5,8 +5,8 @@ snapshot_kind: text { "results": [ { - "uid": 21, - "batchUid": 20, + "uid": 25, + "batchUid": 24, "indexUid": null, "status": "succeeded", "type": "upgradeDatabase", @@ -21,6 +21,83 @@ snapshot_kind: text "startedAt": "[date]", "finishedAt": "[date]" }, + { + "uid": 24, + "batchUid": 23, + "indexUid": "mieli", + "status": "succeeded", + "type": "indexDeletion", + "canceledBy": null, + "details": { + "deletedDocuments": 0 + }, + "error": null, + "duration": "PT0.004146631S", + "enqueuedAt": "2025-01-23T11:38:57.000009177Z", + "startedAt": "2025-01-23T11:38:57.012591321Z", + "finishedAt": "2025-01-23T11:38:57.016737952Z" + }, + { + "uid": 23, + "batchUid": 22, + "indexUid": "kefir", + "status": "succeeded", + "type": "documentAdditionOrUpdate", + "canceledBy": null, + "details": { + "receivedDocuments": 1, + "indexedDocuments": 1 + }, + "error": null, + "duration": "PT0.102738497S", + "enqueuedAt": "2025-01-23T11:36:22.53917994Z", + "startedAt": "2025-01-23T11:36:22.551906856Z", + "finishedAt": "2025-01-23T11:36:22.654645353Z" + }, + { + "uid": 22, + "batchUid": 21, + "indexUid": "kefir", + "status": "failed", + "type": "documentAdditionOrUpdate", + "canceledBy": null, + "details": { + "receivedDocuments": 1, + "indexedDocuments": 0 + }, + "error": { + "message": "Document doesn't have a `id` attribute: `{\"age\":1.4}`.", + "code": "missing_document_id", + "type": "invalid_request", + "link": "https://docs.meilisearch.com/errors#missing_document_id" + }, + "duration": "PT0.005108474S", + "enqueuedAt": "2025-01-23T11:36:04.115475071Z", + "startedAt": "2025-01-23T11:36:04.132670526Z", + "finishedAt": "2025-01-23T11:36:04.137779Z" + }, + { + "uid": 21, + "batchUid": 20, + "indexUid": "mieli", + "status": "failed", + "type": "documentAdditionOrUpdate", + "canceledBy": null, + "details": { + "receivedDocuments": 1, + "indexedDocuments": 0 + }, + "error": { + "message": "The primary key inference failed as the engine did not find any field ending with `id` in its name. Please specify the primary key manually using the `primaryKey` query parameter.", + "code": "index_primary_key_no_candidate_found", + "type": "invalid_request", + "link": "https://docs.meilisearch.com/errors#index_primary_key_no_candidate_found" + }, + "duration": "PT0.027954894S", + "enqueuedAt": "2025-01-23T11:35:53.625718309Z", + "startedAt": "2025-01-23T11:35:53.631082795Z", + "finishedAt": "2025-01-23T11:35:53.659037689Z" + }, { "uid": 20, "batchUid": 19, @@ -312,83 +389,10 @@ snapshot_kind: text "enqueuedAt": "2025-01-16T16:54:51.927866243Z", "startedAt": "2025-01-16T16:54:51.940332781Z", "finishedAt": "2025-01-16T16:54:51.947897942Z" - }, - { - "uid": 5, - "batchUid": 5, - "indexUid": "kefir", - "status": "succeeded", - "type": "settingsUpdate", - "canceledBy": null, - "details": { - "stopWords": [ - "le", - "un" - ] - }, - "error": null, - "duration": "PT0.016307263S", - "enqueuedAt": "2025-01-16T16:53:19.900781991Z", - "startedAt": "2025-01-16T16:53:19.913351957Z", - "finishedAt": "2025-01-16T16:53:19.92965922Z" - }, - { - "uid": 4, - "batchUid": 4, - "indexUid": "kefir", - "status": "succeeded", - "type": "documentAdditionOrUpdate", - "canceledBy": null, - "details": { - "receivedDocuments": 1, - "indexedDocuments": 1 - }, - "error": null, - "duration": "PT0.087655941S", - "enqueuedAt": "2025-01-16T16:52:32.618659861Z", - "startedAt": "2025-01-16T16:52:32.631145531Z", - "finishedAt": "2025-01-16T16:52:32.718801472Z" - }, - { - "uid": 3, - "batchUid": 3, - "indexUid": "kefir", - "status": "succeeded", - "type": "settingsUpdate", - "canceledBy": null, - "details": { - "sortableAttributes": [ - "age" - ] - }, - "error": null, - "duration": "PT0.007593573S", - "enqueuedAt": "2025-01-16T16:47:53.665616298Z", - "startedAt": "2025-01-16T16:47:53.677901409Z", - "finishedAt": "2025-01-16T16:47:53.685494982Z" - }, - { - "uid": 2, - "batchUid": 2, - "indexUid": "kefir", - "status": "succeeded", - "type": "settingsUpdate", - "canceledBy": null, - "details": { - "filterableAttributes": [ - "age", - "surname" - ] - }, - "error": null, - "duration": "PT0.017769760S", - "enqueuedAt": "2025-01-16T16:47:41.194872913Z", - "startedAt": "2025-01-16T16:47:41.211587682Z", - "finishedAt": "2025-01-16T16:47:41.229357442Z" } ], - "total": 20, + "total": 24, "limit": 20, - "from": 21, - "next": null + "from": 25, + "next": 5 } diff --git a/crates/meilisearch/tests/upgrade/v1_12/snapshots/v1_12_0.rs/check_the_index_scheduler/the_whole_batch_queue_once_everything_has_been_processed.snap b/crates/meilisearch/tests/upgrade/v1_12/snapshots/v1_12_0.rs/check_the_index_scheduler/the_whole_batch_queue_once_everything_has_been_processed.snap index 9319a51cb..63308dc64 100644 --- a/crates/meilisearch/tests/upgrade/v1_12/snapshots/v1_12_0.rs/check_the_index_scheduler/the_whole_batch_queue_once_everything_has_been_processed.snap +++ b/crates/meilisearch/tests/upgrade/v1_12/snapshots/v1_12_0.rs/check_the_index_scheduler/the_whole_batch_queue_once_everything_has_been_processed.snap @@ -5,7 +5,7 @@ snapshot_kind: text { "results": [ { - "uid": 20, + "uid": 24, "progress": null, "details": { "upgradeFrom": "v1.12.0", @@ -25,6 +25,97 @@ snapshot_kind: text "startedAt": "[date]", "finishedAt": "[date]" }, + { + "uid": 23, + "progress": null, + "details": { + "deletedDocuments": 0 + }, + "stats": { + "totalNbTasks": 1, + "status": { + "succeeded": 1 + }, + "types": { + "indexDeletion": 1 + }, + "indexUids": { + "mieli": 1 + } + }, + "duration": "PT0.004146631S", + "startedAt": "2025-01-23T11:38:57.012591321Z", + "finishedAt": "2025-01-23T11:38:57.016737952Z" + }, + { + "uid": 22, + "progress": null, + "details": { + "receivedDocuments": 1, + "indexedDocuments": 1 + }, + "stats": { + "totalNbTasks": 1, + "status": { + "succeeded": 1 + }, + "types": { + "documentAdditionOrUpdate": 1 + }, + "indexUids": { + "kefir": 1 + } + }, + "duration": "PT0.102738497S", + "startedAt": "2025-01-23T11:36:22.551906856Z", + "finishedAt": "2025-01-23T11:36:22.654645353Z" + }, + { + "uid": 21, + "progress": null, + "details": { + "receivedDocuments": 1, + "indexedDocuments": 0 + }, + "stats": { + "totalNbTasks": 1, + "status": { + "failed": 1 + }, + "types": { + "documentAdditionOrUpdate": 1 + }, + "indexUids": { + "kefir": 1 + } + }, + "duration": "PT0.005108474S", + "startedAt": "2025-01-23T11:36:04.132670526Z", + "finishedAt": "2025-01-23T11:36:04.137779Z" + }, + { + "uid": 20, + "progress": null, + "details": { + "receivedDocuments": 1, + "indexedDocuments": 0 + }, + "stats": { + "totalNbTasks": 1, + "status": { + "failed": 1 + }, + "types": { + "documentAdditionOrUpdate": 1 + }, + "indexUids": { + "mieli": 1 + } + }, + "duration": "PT0.027954894S", + "startedAt": "2025-01-23T11:35:53.631082795Z", + "finishedAt": "2025-01-23T11:35:53.659037689Z" + }, { "uid": 19, "progress": null, @@ -526,8 +617,8 @@ snapshot_kind: text "finishedAt": "2025-01-16T16:45:16.131303739Z" } ], - "total": 21, + "total": 25, "limit": 1000, - "from": 20, + "from": 24, "next": null } diff --git a/crates/meilisearch/tests/upgrade/v1_12/snapshots/v1_12_0.rs/check_the_index_scheduler/the_whole_task_queue_once_everything_has_been_processed.snap b/crates/meilisearch/tests/upgrade/v1_12/snapshots/v1_12_0.rs/check_the_index_scheduler/the_whole_task_queue_once_everything_has_been_processed.snap index f681a1b62..d965b9b68 100644 --- a/crates/meilisearch/tests/upgrade/v1_12/snapshots/v1_12_0.rs/check_the_index_scheduler/the_whole_task_queue_once_everything_has_been_processed.snap +++ b/crates/meilisearch/tests/upgrade/v1_12/snapshots/v1_12_0.rs/check_the_index_scheduler/the_whole_task_queue_once_everything_has_been_processed.snap @@ -5,8 +5,8 @@ snapshot_kind: text { "results": [ { - "uid": 21, - "batchUid": 20, + "uid": 25, + "batchUid": 24, "indexUid": null, "status": "succeeded", "type": "upgradeDatabase", @@ -21,6 +21,83 @@ snapshot_kind: text "startedAt": "[date]", "finishedAt": "[date]" }, + { + "uid": 24, + "batchUid": 23, + "indexUid": "mieli", + "status": "succeeded", + "type": "indexDeletion", + "canceledBy": null, + "details": { + "deletedDocuments": 0 + }, + "error": null, + "duration": "PT0.004146631S", + "enqueuedAt": "2025-01-23T11:38:57.000009177Z", + "startedAt": "2025-01-23T11:38:57.012591321Z", + "finishedAt": "2025-01-23T11:38:57.016737952Z" + }, + { + "uid": 23, + "batchUid": 22, + "indexUid": "kefir", + "status": "succeeded", + "type": "documentAdditionOrUpdate", + "canceledBy": null, + "details": { + "receivedDocuments": 1, + "indexedDocuments": 1 + }, + "error": null, + "duration": "PT0.102738497S", + "enqueuedAt": "2025-01-23T11:36:22.53917994Z", + "startedAt": "2025-01-23T11:36:22.551906856Z", + "finishedAt": "2025-01-23T11:36:22.654645353Z" + }, + { + "uid": 22, + "batchUid": 21, + "indexUid": "kefir", + "status": "failed", + "type": "documentAdditionOrUpdate", + "canceledBy": null, + "details": { + "receivedDocuments": 1, + "indexedDocuments": 0 + }, + "error": { + "message": "Document doesn't have a `id` attribute: `{\"age\":1.4}`.", + "code": "missing_document_id", + "type": "invalid_request", + "link": "https://docs.meilisearch.com/errors#missing_document_id" + }, + "duration": "PT0.005108474S", + "enqueuedAt": "2025-01-23T11:36:04.115475071Z", + "startedAt": "2025-01-23T11:36:04.132670526Z", + "finishedAt": "2025-01-23T11:36:04.137779Z" + }, + { + "uid": 21, + "batchUid": 20, + "indexUid": "mieli", + "status": "failed", + "type": "documentAdditionOrUpdate", + "canceledBy": null, + "details": { + "receivedDocuments": 1, + "indexedDocuments": 0 + }, + "error": { + "message": "The primary key inference failed as the engine did not find any field ending with `id` in its name. Please specify the primary key manually using the `primaryKey` query parameter.", + "code": "index_primary_key_no_candidate_found", + "type": "invalid_request", + "link": "https://docs.meilisearch.com/errors#index_primary_key_no_candidate_found" + }, + "duration": "PT0.027954894S", + "enqueuedAt": "2025-01-23T11:35:53.625718309Z", + "startedAt": "2025-01-23T11:35:53.631082795Z", + "finishedAt": "2025-01-23T11:35:53.659037689Z" + }, { "uid": 20, "batchUid": 19, @@ -421,8 +498,8 @@ snapshot_kind: text "finishedAt": "2025-01-16T16:45:16.131303739Z" } ], - "total": 22, + "total": 26, "limit": 1000, - "from": 21, + "from": 25, "next": null } diff --git a/crates/meilisearch/tests/upgrade/v1_12/v1_12_0.ms/auth/lock.mdb b/crates/meilisearch/tests/upgrade/v1_12/v1_12_0.ms/auth/lock.mdb index 2f097330d..4c80ffe2c 100644 Binary files a/crates/meilisearch/tests/upgrade/v1_12/v1_12_0.ms/auth/lock.mdb and b/crates/meilisearch/tests/upgrade/v1_12/v1_12_0.ms/auth/lock.mdb differ diff --git a/crates/meilisearch/tests/upgrade/v1_12/v1_12_0.ms/indexes/381abe91-f939-4b91-92f2-01a24c2e8e3d/data.mdb b/crates/meilisearch/tests/upgrade/v1_12/v1_12_0.ms/indexes/381abe91-f939-4b91-92f2-01a24c2e8e3d/data.mdb index 598dc17a6..c31db3415 100644 Binary files a/crates/meilisearch/tests/upgrade/v1_12/v1_12_0.ms/indexes/381abe91-f939-4b91-92f2-01a24c2e8e3d/data.mdb and b/crates/meilisearch/tests/upgrade/v1_12/v1_12_0.ms/indexes/381abe91-f939-4b91-92f2-01a24c2e8e3d/data.mdb differ diff --git a/crates/meilisearch/tests/upgrade/v1_12/v1_12_0.ms/indexes/381abe91-f939-4b91-92f2-01a24c2e8e3d/lock.mdb b/crates/meilisearch/tests/upgrade/v1_12/v1_12_0.ms/indexes/381abe91-f939-4b91-92f2-01a24c2e8e3d/lock.mdb index fe9326564..c99608b77 100644 Binary files a/crates/meilisearch/tests/upgrade/v1_12/v1_12_0.ms/indexes/381abe91-f939-4b91-92f2-01a24c2e8e3d/lock.mdb and b/crates/meilisearch/tests/upgrade/v1_12/v1_12_0.ms/indexes/381abe91-f939-4b91-92f2-01a24c2e8e3d/lock.mdb differ diff --git a/crates/meilisearch/tests/upgrade/v1_12/v1_12_0.ms/tasks/data.mdb b/crates/meilisearch/tests/upgrade/v1_12/v1_12_0.ms/tasks/data.mdb index 49dbe6735..226be2332 100644 Binary files a/crates/meilisearch/tests/upgrade/v1_12/v1_12_0.ms/tasks/data.mdb and b/crates/meilisearch/tests/upgrade/v1_12/v1_12_0.ms/tasks/data.mdb differ diff --git a/crates/meilisearch/tests/upgrade/v1_12/v1_12_0.ms/tasks/lock.mdb b/crates/meilisearch/tests/upgrade/v1_12/v1_12_0.ms/tasks/lock.mdb index b27d4eb0b..6d38eab08 100644 Binary files a/crates/meilisearch/tests/upgrade/v1_12/v1_12_0.ms/tasks/lock.mdb and b/crates/meilisearch/tests/upgrade/v1_12/v1_12_0.ms/tasks/lock.mdb differ diff --git a/crates/meilisearch/tests/upgrade/v1_12/v1_12_0.rs b/crates/meilisearch/tests/upgrade/v1_12/v1_12_0.rs index 539309d0a..7c1af748e 100644 --- a/crates/meilisearch/tests/upgrade/v1_12/v1_12_0.rs +++ b/crates/meilisearch/tests/upgrade/v1_12/v1_12_0.rs @@ -115,7 +115,7 @@ async fn check_the_index_scheduler(server: &Server) { { "uid": "kefir", "createdAt": "2025-01-16T16:45:16.020663157Z", - "updatedAt": "2025-01-16T17:18:43.296777845Z", + "updatedAt": "2025-01-23T11:36:22.634859166Z", "primaryKey": "id" } ], @@ -128,8 +128,8 @@ async fn check_the_index_scheduler(server: &Server) { let (stats, _) = server.stats().await; snapshot!(stats, @r#" { - "databaseSize": 425984, - "lastUpdate": "2025-01-16T17:18:43.296777845Z", + "databaseSize": 438272, + "lastUpdate": "2025-01-23T11:36:22.634859166Z", "indexes": { "kefir": { "numberOfDocuments": 1, @@ -207,8 +207,8 @@ async fn check_the_index_scheduler(server: &Server) { let (stats, _) = server.stats().await; snapshot!(stats, @r#" { - "databaseSize": 425984, - "lastUpdate": "2025-01-16T17:18:43.296777845Z", + "databaseSize": 438272, + "lastUpdate": "2025-01-23T11:36:22.634859166Z", "indexes": { "kefir": { "numberOfDocuments": 1,