3641: Bring back changes from `release v1.1.0` into `main` after v1.1.0 release r=curquiza a=curquiza

Replace https://github.com/meilisearch/meilisearch/pull/3637 since we don't want to pull commits from `main` into `release-v1.1.0` when fixing git conflicts

Co-authored-by: ManyTheFish <many@meilisearch.com>
Co-authored-by: bors[bot] <26634292+bors[bot]@users.noreply.github.com>
Co-authored-by: Charlotte Vermandel <charlottevermandel@gmail.com>
Co-authored-by: Tamo <tamo@meilisearch.com>
Co-authored-by: Louis Dureuil <louis@meilisearch.com>
Co-authored-by: curquiza <clementine@meilisearch.com>
Co-authored-by: Clément Renault <clement@meilisearch.com>
Co-authored-by: Many the fish <many@meilisearch.com>
This commit is contained in:
bors[bot] 2023-04-06 12:37:54 +00:00 committed by GitHub
commit b4c01581cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
262 changed files with 4045 additions and 381 deletions

View file

@ -1,5 +1,6 @@
mod data;
use meili_snap::{json_string, snapshot};
use meilisearch::Opt;
use serde_json::json;
@ -66,6 +67,35 @@ async fn import_dump_v1_movie_raw() {
document,
json!({"id": 10006, "title": "Wild Seven", "overview": "In this darkly karmic vision of Arizona, a man who breathes nothing but ill will begins a noxious domino effect as quickly as an uncontrollable virus kills. As he exits Arizona State Penn after twenty-one long years, Wilson has only one thing on the brain, leveling the score with career criminal, Mackey Willis.", "genres": ["Action", "Crime", "Drama"], "poster": "https://image.tmdb.org/t/p/w500/y114dTPoqn8k2Txps4P2tI95YCS.jpg", "release_date": 1136073600})
);
// We're going to ensure that every reverse index of the task queue has been well built while importing the dump
let (tasks, code) = server.tasks_filter("uids=0&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("types=documentAdditionOrUpdate&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("statuses=succeeded&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("indexUids=indexUID&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("afterEnqueuedAt=2021-09-05&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("afterStartedAt=2021-09-06&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("afterFinishedAt=2021-09-07&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
}
#[actix_rt::test]
@ -129,6 +159,35 @@ async fn import_dump_v1_movie_with_settings() {
document,
json!({ "id": 10006, "title": "Wild Seven", "genres": ["Action", "Crime", "Drama"], "overview": "In this darkly karmic vision of Arizona, a man who breathes nothing but ill will begins a noxious domino effect as quickly as an uncontrollable virus kills. As he exits Arizona State Penn after twenty-one long years, Wilson has only one thing on the brain, leveling the score with career criminal, Mackey Willis.", "poster": "https://image.tmdb.org/t/p/w500/y114dTPoqn8k2Txps4P2tI95YCS.jpg", "release_date": 1136073600})
);
// We're going to ensure that every reverse index of the task queue has been well built while importing the dump
let (tasks, code) = server.tasks_filter("uids=0&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("types=documentAdditionOrUpdate&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("statuses=succeeded&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("indexUids=indexUID&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("afterEnqueuedAt=2021-09-05&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("afterStartedAt=2021-09-06&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("afterFinishedAt=2021-09-07&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
}
#[actix_rt::test]
@ -192,6 +251,35 @@ async fn import_dump_v1_rubygems_with_settings() {
document,
json!({ "name": "vortex-of-agony", "summary": "You dont need to use nodejs or go, just install this plugin. It will crash your application at random", "description": "You dont need to use nodejs or go, just install this plugin. It will crash your application at random", "id": "159227", "version": "0.1.0", "total_downloads": "1007"})
);
// We're going to ensure that every reverse index of the task queue has been well built while importing the dump
let (tasks, code) = server.tasks_filter("uids=0&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("types=documentAdditionOrUpdate&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("statuses=succeeded&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("indexUids=rubygems&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("afterEnqueuedAt=2021-09-05&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("afterStartedAt=2021-09-06&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("afterFinishedAt=2021-09-07&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
}
#[actix_rt::test]
@ -253,6 +341,35 @@ async fn import_dump_v2_movie_raw() {
document,
json!({"id": 10006, "title": "Wild Seven", "overview": "In this darkly karmic vision of Arizona, a man who breathes nothing but ill will begins a noxious domino effect as quickly as an uncontrollable virus kills. As he exits Arizona State Penn after twenty-one long years, Wilson has only one thing on the brain, leveling the score with career criminal, Mackey Willis.", "genres": ["Action", "Crime", "Drama"], "poster": "https://image.tmdb.org/t/p/w500/y114dTPoqn8k2Txps4P2tI95YCS.jpg", "release_date": 1136073600})
);
// We're going to ensure that every reverse index of the task queue has been well built while importing the dump
let (tasks, code) = server.tasks_filter("uids=0&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("types=documentAdditionOrUpdate&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("statuses=succeeded&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("indexUids=indexUID&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("afterEnqueuedAt=2021-09-05&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("afterStartedAt=2021-09-06&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("afterFinishedAt=2021-09-07&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
}
#[actix_rt::test]
@ -316,6 +433,35 @@ async fn import_dump_v2_movie_with_settings() {
document,
json!({ "id": 10006, "title": "Wild Seven", "genres": ["Action", "Crime", "Drama"], "overview": "In this darkly karmic vision of Arizona, a man who breathes nothing but ill will begins a noxious domino effect as quickly as an uncontrollable virus kills. As he exits Arizona State Penn after twenty-one long years, Wilson has only one thing on the brain, leveling the score with career criminal, Mackey Willis.", "poster": "https://image.tmdb.org/t/p/w500/y114dTPoqn8k2Txps4P2tI95YCS.jpg", "release_date": 1136073600})
);
// We're going to ensure that every reverse index of the task queue has been well built while importing the dump
let (tasks, code) = server.tasks_filter("uids=0&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("types=documentAdditionOrUpdate&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("statuses=succeeded&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("indexUids=indexUID&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("afterEnqueuedAt=2021-09-05&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("afterStartedAt=2021-09-06&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("afterFinishedAt=2021-09-07&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
}
#[actix_rt::test]
@ -379,6 +525,35 @@ async fn import_dump_v2_rubygems_with_settings() {
document,
json!({ "name": "vortex-of-agony", "summary": "You dont need to use nodejs or go, just install this plugin. It will crash your application at random", "description": "You dont need to use nodejs or go, just install this plugin. It will crash your application at random", "id": "159227", "version": "0.1.0", "total_downloads": "1007"})
);
// We're going to ensure that every reverse index of the task queue has been well built while importing the dump
let (tasks, code) = server.tasks_filter("uids=0&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("types=documentAdditionOrUpdate&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("statuses=succeeded&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("indexUids=rubygems&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("afterEnqueuedAt=2021-09-05&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("afterStartedAt=2021-09-06&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("afterFinishedAt=2021-09-07&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
}
#[actix_rt::test]
@ -440,6 +615,35 @@ async fn import_dump_v3_movie_raw() {
document,
json!({"id": 10006, "title": "Wild Seven", "overview": "In this darkly karmic vision of Arizona, a man who breathes nothing but ill will begins a noxious domino effect as quickly as an uncontrollable virus kills. As he exits Arizona State Penn after twenty-one long years, Wilson has only one thing on the brain, leveling the score with career criminal, Mackey Willis.", "genres": ["Action", "Crime", "Drama"], "poster": "https://image.tmdb.org/t/p/w500/y114dTPoqn8k2Txps4P2tI95YCS.jpg", "release_date": 1136073600})
);
// We're going to ensure that every reverse index of the task queue has been well built while importing the dump
let (tasks, code) = server.tasks_filter("uids=0&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("types=documentAdditionOrUpdate&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("statuses=succeeded&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("indexUids=indexUID&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("afterEnqueuedAt=2021-09-05&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("afterStartedAt=2021-09-06&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("afterFinishedAt=2021-09-07&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
}
#[actix_rt::test]
@ -503,6 +707,35 @@ async fn import_dump_v3_movie_with_settings() {
document,
json!({ "id": 10006, "title": "Wild Seven", "genres": ["Action", "Crime", "Drama"], "overview": "In this darkly karmic vision of Arizona, a man who breathes nothing but ill will begins a noxious domino effect as quickly as an uncontrollable virus kills. As he exits Arizona State Penn after twenty-one long years, Wilson has only one thing on the brain, leveling the score with career criminal, Mackey Willis.", "poster": "https://image.tmdb.org/t/p/w500/y114dTPoqn8k2Txps4P2tI95YCS.jpg", "release_date": 1136073600})
);
// We're going to ensure that every reverse index of the task queue has been well built while importing the dump
let (tasks, code) = server.tasks_filter("uids=0&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("types=documentAdditionOrUpdate&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("statuses=succeeded&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("indexUids=indexUID&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("afterEnqueuedAt=2021-09-05&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("afterStartedAt=2021-09-06&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("afterFinishedAt=2021-09-07&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
}
#[actix_rt::test]
@ -566,6 +799,35 @@ async fn import_dump_v3_rubygems_with_settings() {
document,
json!({ "name": "vortex-of-agony", "summary": "You dont need to use nodejs or go, just install this plugin. It will crash your application at random", "description": "You dont need to use nodejs or go, just install this plugin. It will crash your application at random", "id": "159227", "version": "0.1.0", "total_downloads": "1007"})
);
// We're going to ensure that every reverse index of the task queue has been well built while importing the dump
let (tasks, code) = server.tasks_filter("uids=0&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("types=documentAdditionOrUpdate&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("statuses=succeeded&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("indexUids=rubygems&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("afterEnqueuedAt=2021-09-05&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("afterStartedAt=2021-09-06&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("afterFinishedAt=2021-09-07&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
}
#[actix_rt::test]
@ -627,6 +889,35 @@ async fn import_dump_v4_movie_raw() {
document,
json!({ "id": 10006, "title": "Wild Seven", "overview": "In this darkly karmic vision of Arizona, a man who breathes nothing but ill will begins a noxious domino effect as quickly as an uncontrollable virus kills. As he exits Arizona State Penn after twenty-one long years, Wilson has only one thing on the brain, leveling the score with career criminal, Mackey Willis.", "genres": ["Action", "Crime", "Drama"], "poster": "https://image.tmdb.org/t/p/w500/y114dTPoqn8k2Txps4P2tI95YCS.jpg", "release_date": 1136073600})
);
// We're going to ensure that every reverse index of the task queue has been well built while importing the dump
let (tasks, code) = server.tasks_filter("uids=0&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("types=documentAdditionOrUpdate&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("statuses=succeeded&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("indexUids=indexUID&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("afterEnqueuedAt=2021-09-05&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("afterStartedAt=2021-09-06&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("afterFinishedAt=2021-09-07&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
}
#[actix_rt::test]
@ -690,6 +981,35 @@ async fn import_dump_v4_movie_with_settings() {
document,
json!({ "id": 10006, "title": "Wild Seven", "genres": ["Action", "Crime", "Drama"], "overview": "In this darkly karmic vision of Arizona, a man who breathes nothing but ill will begins a noxious domino effect as quickly as an uncontrollable virus kills. As he exits Arizona State Penn after twenty-one long years, Wilson has only one thing on the brain, leveling the score with career criminal, Mackey Willis.", "poster": "https://image.tmdb.org/t/p/w500/y114dTPoqn8k2Txps4P2tI95YCS.jpg", "release_date": 1136073600})
);
// We're going to ensure that every reverse index of the task queue has been well built while importing the dump
let (tasks, code) = server.tasks_filter("uids=0&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("types=documentAdditionOrUpdate&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("statuses=succeeded&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("indexUids=indexUID&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("afterEnqueuedAt=2021-09-05&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("afterStartedAt=2021-09-06&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("afterFinishedAt=2021-09-07&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
}
#[actix_rt::test]
@ -753,6 +1073,35 @@ async fn import_dump_v4_rubygems_with_settings() {
document,
json!({ "name": "vortex-of-agony", "summary": "You dont need to use nodejs or go, just install this plugin. It will crash your application at random", "description": "You dont need to use nodejs or go, just install this plugin. It will crash your application at random", "id": "159227", "version": "0.1.0", "total_downloads": "1007"})
);
// We're going to ensure that every reverse index of the task queue has been well built while importing the dump
let (tasks, code) = server.tasks_filter("uids=0&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("types=documentAdditionOrUpdate&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("statuses=succeeded&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("indexUids=rubygems&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("afterEnqueuedAt=2021-09-05&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("afterStartedAt=2021-09-06&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("afterFinishedAt=2021-09-07&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
}
#[actix_rt::test]
@ -772,6 +1121,12 @@ async fn import_dump_v5() {
assert_eq!(indexes["results"][1]["uid"], json!("test2"));
assert_eq!(indexes["results"][0]["primaryKey"], json!("id"));
// before doing anything we're going to wait until all the tasks in the dump have finished processing
let result = server.tasks_filter("statuses=enqueued,processing").await.0;
for task in result["results"].as_array().unwrap() {
server.wait_task(task["uid"].as_u64().unwrap()).await;
}
let expected_stats = json!({
"numberOfDocuments": 10,
"isIndexing": false,
@ -816,4 +1171,43 @@ async fn import_dump_v5() {
let key = &keys["results"][0];
assert_eq!(key["name"], "my key");
// We're going to ensure that every reverse index of the task queue has been well built while importing the dump
let (tasks, code) = server.tasks_filter("uids=0&limit=1&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("types=documentAdditionOrUpdate&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(tasks));
let (tasks, code) = server.tasks_filter("statuses=succeeded&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(
json_string!(tasks, { ".results[].details.dumpUid" => "[uid]", ".results[].duration" => "[duration]" , ".results[].startedAt" => "[date]" , ".results[].finishedAt" => "[date]" })
);
let (tasks, code) = server.tasks_filter("indexUids=test&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(
json_string!(tasks, { ".results[].details.dumpUid" => "[uid]", ".results[].duration" => "[duration]" , ".results[].startedAt" => "[date]" , ".results[].finishedAt" => "[date]" })
);
let (tasks, code) = server.tasks_filter("afterEnqueuedAt=2021-09-05&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(
json_string!(tasks, { ".results[].details.dumpUid" => "[uid]", ".results[].duration" => "[duration]" , ".results[].startedAt" => "[date]" , ".results[].finishedAt" => "[date]" })
);
let (tasks, code) = server.tasks_filter("afterStartedAt=2021-09-06&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(
json_string!(tasks, { ".results[].details.dumpUid" => "[uid]", ".results[].duration" => "[duration]" , ".results[].startedAt" => "[date]" , ".results[].finishedAt" => "[date]" })
);
let (tasks, code) = server.tasks_filter("afterFinishedAt=2021-09-07&limit=1").await;
snapshot!(code, @"200 OK");
snapshot!(
json_string!(tasks, { ".results[].details.dumpUid" => "[uid]", ".results[].duration" => "[duration]" , ".results[].startedAt" => "[date]" , ".results[].finishedAt" => "[date]" })
);
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 0,
"indexUid": "indexUID",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 31968
},
"error": null,
"duration": "PT9.317060500S",
"enqueuedAt": "2021-09-08T09:08:45.153219Z",
"startedAt": "2021-09-08T09:08:45.3961665Z",
"finishedAt": "2021-09-08T09:08:54.713227Z"
}
],
"limit": 1,
"from": 0,
"next": null
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 0,
"indexUid": "indexUID",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 31968
},
"error": null,
"duration": "PT9.317060500S",
"enqueuedAt": "2021-09-08T09:08:45.153219Z",
"startedAt": "2021-09-08T09:08:45.3961665Z",
"finishedAt": "2021-09-08T09:08:54.713227Z"
}
],
"limit": 1,
"from": 0,
"next": null
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 0,
"indexUid": "indexUID",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 31968
},
"error": null,
"duration": "PT9.317060500S",
"enqueuedAt": "2021-09-08T09:08:45.153219Z",
"startedAt": "2021-09-08T09:08:45.3961665Z",
"finishedAt": "2021-09-08T09:08:54.713227Z"
}
],
"limit": 1,
"from": 0,
"next": null
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 0,
"indexUid": "indexUID",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 31968
},
"error": null,
"duration": "PT9.317060500S",
"enqueuedAt": "2021-09-08T09:08:45.153219Z",
"startedAt": "2021-09-08T09:08:45.3961665Z",
"finishedAt": "2021-09-08T09:08:54.713227Z"
}
],
"limit": 1,
"from": 0,
"next": null
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 0,
"indexUid": "indexUID",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 31968
},
"error": null,
"duration": "PT9.317060500S",
"enqueuedAt": "2021-09-08T09:08:45.153219Z",
"startedAt": "2021-09-08T09:08:45.3961665Z",
"finishedAt": "2021-09-08T09:08:54.713227Z"
}
],
"limit": 1,
"from": 0,
"next": null
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 0,
"indexUid": "indexUID",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 31968
},
"error": null,
"duration": "PT9.317060500S",
"enqueuedAt": "2021-09-08T09:08:45.153219Z",
"startedAt": "2021-09-08T09:08:45.3961665Z",
"finishedAt": "2021-09-08T09:08:54.713227Z"
}
],
"limit": 1,
"from": 0,
"next": null
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 0,
"indexUid": "indexUID",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 31968
},
"error": null,
"duration": "PT9.317060500S",
"enqueuedAt": "2021-09-08T09:08:45.153219Z",
"startedAt": "2021-09-08T09:08:45.3961665Z",
"finishedAt": "2021-09-08T09:08:54.713227Z"
}
],
"limit": 1,
"from": 0,
"next": null
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 0,
"indexUid": "indexUID",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 31968
},
"error": null,
"duration": "PT9.090735774S",
"enqueuedAt": "2021-09-08T09:34:16.036101Z",
"startedAt": "2021-09-08T09:34:16.261191226Z",
"finishedAt": "2021-09-08T09:34:25.351927Z"
}
],
"limit": 1,
"from": 0,
"next": null
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 0,
"indexUid": "indexUID",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 31968
},
"error": null,
"duration": "PT9.090735774S",
"enqueuedAt": "2021-09-08T09:34:16.036101Z",
"startedAt": "2021-09-08T09:34:16.261191226Z",
"finishedAt": "2021-09-08T09:34:25.351927Z"
}
],
"limit": 1,
"from": 0,
"next": null
}

View file

@ -0,0 +1,46 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 1,
"indexUid": "indexUID",
"status": "succeeded",
"type": "settingsUpdate",
"canceledBy": null,
"details": {
"displayedAttributes": [
"genres",
"id",
"overview",
"poster",
"release_date",
"title"
],
"searchableAttributes": [
"title",
"overview"
],
"filterableAttributes": [
"genres"
],
"sortableAttributes": [
"genres"
],
"stopWords": [
"of",
"the"
]
},
"error": null,
"duration": "PT7.288826907S",
"enqueuedAt": "2021-09-08T09:34:40.882977Z",
"startedAt": "2021-09-08T09:34:40.883073093Z",
"finishedAt": "2021-09-08T09:34:48.1719Z"
}
],
"limit": 1,
"from": 1,
"next": 0
}

View file

@ -0,0 +1,46 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 1,
"indexUid": "indexUID",
"status": "succeeded",
"type": "settingsUpdate",
"canceledBy": null,
"details": {
"displayedAttributes": [
"genres",
"id",
"overview",
"poster",
"release_date",
"title"
],
"searchableAttributes": [
"title",
"overview"
],
"filterableAttributes": [
"genres"
],
"sortableAttributes": [
"genres"
],
"stopWords": [
"of",
"the"
]
},
"error": null,
"duration": "PT7.288826907S",
"enqueuedAt": "2021-09-08T09:34:40.882977Z",
"startedAt": "2021-09-08T09:34:40.883073093Z",
"finishedAt": "2021-09-08T09:34:48.1719Z"
}
],
"limit": 1,
"from": 1,
"next": 0
}

View file

@ -0,0 +1,46 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 1,
"indexUid": "indexUID",
"status": "succeeded",
"type": "settingsUpdate",
"canceledBy": null,
"details": {
"displayedAttributes": [
"genres",
"id",
"overview",
"poster",
"release_date",
"title"
],
"searchableAttributes": [
"title",
"overview"
],
"filterableAttributes": [
"genres"
],
"sortableAttributes": [
"genres"
],
"stopWords": [
"of",
"the"
]
},
"error": null,
"duration": "PT7.288826907S",
"enqueuedAt": "2021-09-08T09:34:40.882977Z",
"startedAt": "2021-09-08T09:34:40.883073093Z",
"finishedAt": "2021-09-08T09:34:48.1719Z"
}
],
"limit": 1,
"from": 1,
"next": 0
}

View file

@ -0,0 +1,46 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 1,
"indexUid": "indexUID",
"status": "succeeded",
"type": "settingsUpdate",
"canceledBy": null,
"details": {
"displayedAttributes": [
"genres",
"id",
"overview",
"poster",
"release_date",
"title"
],
"searchableAttributes": [
"title",
"overview"
],
"filterableAttributes": [
"genres"
],
"sortableAttributes": [
"genres"
],
"stopWords": [
"of",
"the"
]
},
"error": null,
"duration": "PT7.288826907S",
"enqueuedAt": "2021-09-08T09:34:40.882977Z",
"startedAt": "2021-09-08T09:34:40.883073093Z",
"finishedAt": "2021-09-08T09:34:48.1719Z"
}
],
"limit": 1,
"from": 1,
"next": 0
}

View file

@ -0,0 +1,46 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 1,
"indexUid": "indexUID",
"status": "succeeded",
"type": "settingsUpdate",
"canceledBy": null,
"details": {
"displayedAttributes": [
"genres",
"id",
"overview",
"poster",
"release_date",
"title"
],
"searchableAttributes": [
"title",
"overview"
],
"filterableAttributes": [
"genres"
],
"sortableAttributes": [
"genres"
],
"stopWords": [
"of",
"the"
]
},
"error": null,
"duration": "PT7.288826907S",
"enqueuedAt": "2021-09-08T09:34:40.882977Z",
"startedAt": "2021-09-08T09:34:40.883073093Z",
"finishedAt": "2021-09-08T09:34:48.1719Z"
}
],
"limit": 1,
"from": 1,
"next": 0
}

View file

@ -0,0 +1,51 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 0,
"indexUid": "rubygems",
"status": "succeeded",
"type": "settingsUpdate",
"canceledBy": null,
"details": {
"displayedAttributes": [
"description",
"id",
"name",
"summary",
"total_downloads",
"version"
],
"searchableAttributes": [
"name",
"summary"
],
"filterableAttributes": [
"version"
],
"sortableAttributes": [
"version"
],
"rankingRules": [
"typo",
"words",
"fame:desc",
"proximity",
"attribute",
"exactness",
"total_downloads:desc"
]
},
"error": null,
"duration": "PT0.000988440S",
"enqueuedAt": "2021-09-08T09:26:57.317704Z",
"startedAt": "2021-09-08T09:26:57.31809456Z",
"finishedAt": "2021-09-08T09:26:57.319083Z"
}
],
"limit": 1,
"from": 0,
"next": null
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 92,
"indexUid": "rubygems",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 1042
},
"error": null,
"duration": "PT1.487793839S",
"enqueuedAt": "2021-09-08T09:27:01.465296Z",
"startedAt": "2021-09-08T09:28:44.882177161Z",
"finishedAt": "2021-09-08T09:28:46.369971Z"
}
],
"limit": 1,
"from": 92,
"next": 91
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 92,
"indexUid": "rubygems",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 1042
},
"error": null,
"duration": "PT1.487793839S",
"enqueuedAt": "2021-09-08T09:27:01.465296Z",
"startedAt": "2021-09-08T09:28:44.882177161Z",
"finishedAt": "2021-09-08T09:28:46.369971Z"
}
],
"limit": 1,
"from": 92,
"next": 91
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 92,
"indexUid": "rubygems",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 1042
},
"error": null,
"duration": "PT1.487793839S",
"enqueuedAt": "2021-09-08T09:27:01.465296Z",
"startedAt": "2021-09-08T09:28:44.882177161Z",
"finishedAt": "2021-09-08T09:28:46.369971Z"
}
],
"limit": 1,
"from": 92,
"next": 91
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 92,
"indexUid": "rubygems",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 1042
},
"error": null,
"duration": "PT1.487793839S",
"enqueuedAt": "2021-09-08T09:27:01.465296Z",
"startedAt": "2021-09-08T09:28:44.882177161Z",
"finishedAt": "2021-09-08T09:28:46.369971Z"
}
],
"limit": 1,
"from": 92,
"next": 91
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 92,
"indexUid": "rubygems",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 1042
},
"error": null,
"duration": "PT1.487793839S",
"enqueuedAt": "2021-09-08T09:27:01.465296Z",
"startedAt": "2021-09-08T09:28:44.882177161Z",
"finishedAt": "2021-09-08T09:28:46.369971Z"
}
],
"limit": 1,
"from": 92,
"next": 91
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 92,
"indexUid": "rubygems",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 1042
},
"error": null,
"duration": "PT1.487793839S",
"enqueuedAt": "2021-09-08T09:27:01.465296Z",
"startedAt": "2021-09-08T09:28:44.882177161Z",
"finishedAt": "2021-09-08T09:28:46.369971Z"
}
],
"limit": 1,
"from": 92,
"next": 91
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 0,
"indexUid": "indexUID",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 31944
},
"error": null,
"duration": "PT41.751156S",
"enqueuedAt": "2021-09-08T08:30:30.550282Z",
"startedAt": "2021-09-08T08:30:30.553012Z",
"finishedAt": "2021-09-08T08:31:12.304168Z"
}
],
"limit": 1,
"from": 0,
"next": null
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 0,
"indexUid": "indexUID",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 31944
},
"error": null,
"duration": "PT41.751156S",
"enqueuedAt": "2021-09-08T08:30:30.550282Z",
"startedAt": "2021-09-08T08:30:30.553012Z",
"finishedAt": "2021-09-08T08:31:12.304168Z"
}
],
"limit": 1,
"from": 0,
"next": null
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 0,
"indexUid": "indexUID",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 31944
},
"error": null,
"duration": "PT41.751156S",
"enqueuedAt": "2021-09-08T08:30:30.550282Z",
"startedAt": "2021-09-08T08:30:30.553012Z",
"finishedAt": "2021-09-08T08:31:12.304168Z"
}
],
"limit": 1,
"from": 0,
"next": null
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 0,
"indexUid": "indexUID",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 31944
},
"error": null,
"duration": "PT41.751156S",
"enqueuedAt": "2021-09-08T08:30:30.550282Z",
"startedAt": "2021-09-08T08:30:30.553012Z",
"finishedAt": "2021-09-08T08:31:12.304168Z"
}
],
"limit": 1,
"from": 0,
"next": null
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 0,
"indexUid": "indexUID",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 31944
},
"error": null,
"duration": "PT41.751156S",
"enqueuedAt": "2021-09-08T08:30:30.550282Z",
"startedAt": "2021-09-08T08:30:30.553012Z",
"finishedAt": "2021-09-08T08:31:12.304168Z"
}
],
"limit": 1,
"from": 0,
"next": null
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 0,
"indexUid": "indexUID",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 31944
},
"error": null,
"duration": "PT41.751156S",
"enqueuedAt": "2021-09-08T08:30:30.550282Z",
"startedAt": "2021-09-08T08:30:30.553012Z",
"finishedAt": "2021-09-08T08:31:12.304168Z"
}
],
"limit": 1,
"from": 0,
"next": null
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 0,
"indexUid": "indexUID",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 31944
},
"error": null,
"duration": "PT41.751156S",
"enqueuedAt": "2021-09-08T08:30:30.550282Z",
"startedAt": "2021-09-08T08:30:30.553012Z",
"finishedAt": "2021-09-08T08:31:12.304168Z"
}
],
"limit": 1,
"from": 0,
"next": null
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 0,
"indexUid": "indexUID",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 31944
},
"error": null,
"duration": "PT39.941318S",
"enqueuedAt": "2021-09-08T08:21:14.742672Z",
"startedAt": "2021-09-08T08:21:14.750166Z",
"finishedAt": "2021-09-08T08:21:54.691484Z"
}
],
"limit": 1,
"from": 0,
"next": null
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 0,
"indexUid": "indexUID",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 31944
},
"error": null,
"duration": "PT39.941318S",
"enqueuedAt": "2021-09-08T08:21:14.742672Z",
"startedAt": "2021-09-08T08:21:14.750166Z",
"finishedAt": "2021-09-08T08:21:54.691484Z"
}
],
"limit": 1,
"from": 0,
"next": null
}

View file

@ -0,0 +1,42 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 1,
"indexUid": "indexUID",
"status": "succeeded",
"type": "settingsUpdate",
"canceledBy": null,
"details": {
"displayedAttributes": [
"title",
"genres",
"overview",
"poster",
"release_date"
],
"searchableAttributes": [
"title",
"overview"
],
"filterableAttributes": [
"genres"
],
"stopWords": [
"of",
"the"
]
},
"error": null,
"duration": "PT37.488777S",
"enqueuedAt": "2021-09-08T08:24:02.323444Z",
"startedAt": "2021-09-08T08:24:02.324145Z",
"finishedAt": "2021-09-08T08:24:39.812922Z"
}
],
"limit": 1,
"from": 1,
"next": 0
}

View file

@ -0,0 +1,42 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 1,
"indexUid": "indexUID",
"status": "succeeded",
"type": "settingsUpdate",
"canceledBy": null,
"details": {
"displayedAttributes": [
"title",
"genres",
"overview",
"poster",
"release_date"
],
"searchableAttributes": [
"title",
"overview"
],
"filterableAttributes": [
"genres"
],
"stopWords": [
"of",
"the"
]
},
"error": null,
"duration": "PT37.488777S",
"enqueuedAt": "2021-09-08T08:24:02.323444Z",
"startedAt": "2021-09-08T08:24:02.324145Z",
"finishedAt": "2021-09-08T08:24:39.812922Z"
}
],
"limit": 1,
"from": 1,
"next": 0
}

View file

@ -0,0 +1,42 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 1,
"indexUid": "indexUID",
"status": "succeeded",
"type": "settingsUpdate",
"canceledBy": null,
"details": {
"displayedAttributes": [
"title",
"genres",
"overview",
"poster",
"release_date"
],
"searchableAttributes": [
"title",
"overview"
],
"filterableAttributes": [
"genres"
],
"stopWords": [
"of",
"the"
]
},
"error": null,
"duration": "PT37.488777S",
"enqueuedAt": "2021-09-08T08:24:02.323444Z",
"startedAt": "2021-09-08T08:24:02.324145Z",
"finishedAt": "2021-09-08T08:24:39.812922Z"
}
],
"limit": 1,
"from": 1,
"next": 0
}

View file

@ -0,0 +1,42 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 1,
"indexUid": "indexUID",
"status": "succeeded",
"type": "settingsUpdate",
"canceledBy": null,
"details": {
"displayedAttributes": [
"title",
"genres",
"overview",
"poster",
"release_date"
],
"searchableAttributes": [
"title",
"overview"
],
"filterableAttributes": [
"genres"
],
"stopWords": [
"of",
"the"
]
},
"error": null,
"duration": "PT37.488777S",
"enqueuedAt": "2021-09-08T08:24:02.323444Z",
"startedAt": "2021-09-08T08:24:02.324145Z",
"finishedAt": "2021-09-08T08:24:39.812922Z"
}
],
"limit": 1,
"from": 1,
"next": 0
}

View file

@ -0,0 +1,42 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 1,
"indexUid": "indexUID",
"status": "succeeded",
"type": "settingsUpdate",
"canceledBy": null,
"details": {
"displayedAttributes": [
"title",
"genres",
"overview",
"poster",
"release_date"
],
"searchableAttributes": [
"title",
"overview"
],
"filterableAttributes": [
"genres"
],
"stopWords": [
"of",
"the"
]
},
"error": null,
"duration": "PT37.488777S",
"enqueuedAt": "2021-09-08T08:24:02.323444Z",
"startedAt": "2021-09-08T08:24:02.324145Z",
"finishedAt": "2021-09-08T08:24:39.812922Z"
}
],
"limit": 1,
"from": 1,
"next": 0
}

View file

@ -0,0 +1,47 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 0,
"indexUid": "rubygems",
"status": "succeeded",
"type": "settingsUpdate",
"canceledBy": null,
"details": {
"displayedAttributes": [
"name",
"summary",
"description",
"version",
"total_downloads"
],
"searchableAttributes": [
"name",
"summary"
],
"filterableAttributes": [
"version"
],
"rankingRules": [
"typo",
"words",
"fame:desc",
"proximity",
"attribute",
"exactness",
"total_downloads:desc"
]
},
"error": null,
"duration": "PT0.008886S",
"enqueuedAt": "2021-09-08T08:40:28.660188Z",
"startedAt": "2021-09-08T08:40:28.660766Z",
"finishedAt": "2021-09-08T08:40:28.669652Z"
}
],
"limit": 1,
"from": 0,
"next": null
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 92,
"indexUid": "rubygems",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 1042
},
"error": null,
"duration": "PT14.034672S",
"enqueuedAt": "2021-09-08T08:40:31.390775Z",
"startedAt": "2021-09-08T08:51:39.060642Z",
"finishedAt": "2021-09-08T08:51:53.095314Z"
}
],
"limit": 1,
"from": 92,
"next": 91
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 92,
"indexUid": "rubygems",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 1042
},
"error": null,
"duration": "PT14.034672S",
"enqueuedAt": "2021-09-08T08:40:31.390775Z",
"startedAt": "2021-09-08T08:51:39.060642Z",
"finishedAt": "2021-09-08T08:51:53.095314Z"
}
],
"limit": 1,
"from": 92,
"next": 91
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 92,
"indexUid": "rubygems",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 1042
},
"error": null,
"duration": "PT14.034672S",
"enqueuedAt": "2021-09-08T08:40:31.390775Z",
"startedAt": "2021-09-08T08:51:39.060642Z",
"finishedAt": "2021-09-08T08:51:53.095314Z"
}
],
"limit": 1,
"from": 92,
"next": 91
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 92,
"indexUid": "rubygems",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 1042
},
"error": null,
"duration": "PT14.034672S",
"enqueuedAt": "2021-09-08T08:40:31.390775Z",
"startedAt": "2021-09-08T08:51:39.060642Z",
"finishedAt": "2021-09-08T08:51:53.095314Z"
}
],
"limit": 1,
"from": 92,
"next": 91
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 92,
"indexUid": "rubygems",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 1042
},
"error": null,
"duration": "PT14.034672S",
"enqueuedAt": "2021-09-08T08:40:31.390775Z",
"startedAt": "2021-09-08T08:51:39.060642Z",
"finishedAt": "2021-09-08T08:51:53.095314Z"
}
],
"limit": 1,
"from": 92,
"next": 91
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 92,
"indexUid": "rubygems",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 1042
},
"error": null,
"duration": "PT14.034672S",
"enqueuedAt": "2021-09-08T08:40:31.390775Z",
"startedAt": "2021-09-08T08:51:39.060642Z",
"finishedAt": "2021-09-08T08:51:53.095314Z"
}
],
"limit": 1,
"from": 92,
"next": 91
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 0,
"indexUid": "indexUID",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 31944
},
"error": null,
"duration": "PT41.751156S",
"enqueuedAt": "2021-09-08T08:30:30.550282Z",
"startedAt": "2021-09-08T08:30:30.553012Z",
"finishedAt": "2021-09-08T08:31:12.304168Z"
}
],
"limit": 1,
"from": 0,
"next": null
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 0,
"indexUid": "indexUID",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 31944
},
"error": null,
"duration": "PT41.751156S",
"enqueuedAt": "2021-09-08T08:30:30.550282Z",
"startedAt": "2021-09-08T08:30:30.553012Z",
"finishedAt": "2021-09-08T08:31:12.304168Z"
}
],
"limit": 1,
"from": 0,
"next": null
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 0,
"indexUid": "indexUID",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 31944
},
"error": null,
"duration": "PT41.751156S",
"enqueuedAt": "2021-09-08T08:30:30.550282Z",
"startedAt": "2021-09-08T08:30:30.553012Z",
"finishedAt": "2021-09-08T08:31:12.304168Z"
}
],
"limit": 1,
"from": 0,
"next": null
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 0,
"indexUid": "indexUID",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 31944
},
"error": null,
"duration": "PT41.751156S",
"enqueuedAt": "2021-09-08T08:30:30.550282Z",
"startedAt": "2021-09-08T08:30:30.553012Z",
"finishedAt": "2021-09-08T08:31:12.304168Z"
}
],
"limit": 1,
"from": 0,
"next": null
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 0,
"indexUid": "indexUID",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 31944
},
"error": null,
"duration": "PT41.751156S",
"enqueuedAt": "2021-09-08T08:30:30.550282Z",
"startedAt": "2021-09-08T08:30:30.553012Z",
"finishedAt": "2021-09-08T08:31:12.304168Z"
}
],
"limit": 1,
"from": 0,
"next": null
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 0,
"indexUid": "indexUID",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 31944
},
"error": null,
"duration": "PT41.751156S",
"enqueuedAt": "2021-09-08T08:30:30.550282Z",
"startedAt": "2021-09-08T08:30:30.553012Z",
"finishedAt": "2021-09-08T08:31:12.304168Z"
}
],
"limit": 1,
"from": 0,
"next": null
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 0,
"indexUid": "indexUID",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 31944
},
"error": null,
"duration": "PT41.751156S",
"enqueuedAt": "2021-09-08T08:30:30.550282Z",
"startedAt": "2021-09-08T08:30:30.553012Z",
"finishedAt": "2021-09-08T08:31:12.304168Z"
}
],
"limit": 1,
"from": 0,
"next": null
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 0,
"indexUid": "indexUID",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 31944
},
"error": null,
"duration": "PT39.941318S",
"enqueuedAt": "2021-09-08T08:21:14.742672Z",
"startedAt": "2021-09-08T08:21:14.750166Z",
"finishedAt": "2021-09-08T08:21:54.691484Z"
}
],
"limit": 1,
"from": 0,
"next": null
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 0,
"indexUid": "indexUID",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 31944
},
"error": null,
"duration": "PT39.941318S",
"enqueuedAt": "2021-09-08T08:21:14.742672Z",
"startedAt": "2021-09-08T08:21:14.750166Z",
"finishedAt": "2021-09-08T08:21:54.691484Z"
}
],
"limit": 1,
"from": 0,
"next": null
}

View file

@ -0,0 +1,42 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 1,
"indexUid": "indexUID",
"status": "succeeded",
"type": "settingsUpdate",
"canceledBy": null,
"details": {
"displayedAttributes": [
"title",
"genres",
"overview",
"poster",
"release_date"
],
"searchableAttributes": [
"title",
"overview"
],
"filterableAttributes": [
"genres"
],
"stopWords": [
"of",
"the"
]
},
"error": null,
"duration": "PT37.488777S",
"enqueuedAt": "2021-09-08T08:24:02.323444Z",
"startedAt": "2021-09-08T08:24:02.324145Z",
"finishedAt": "2021-09-08T08:24:39.812922Z"
}
],
"limit": 1,
"from": 1,
"next": 0
}

View file

@ -0,0 +1,42 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 1,
"indexUid": "indexUID",
"status": "succeeded",
"type": "settingsUpdate",
"canceledBy": null,
"details": {
"displayedAttributes": [
"title",
"genres",
"overview",
"poster",
"release_date"
],
"searchableAttributes": [
"title",
"overview"
],
"filterableAttributes": [
"genres"
],
"stopWords": [
"of",
"the"
]
},
"error": null,
"duration": "PT37.488777S",
"enqueuedAt": "2021-09-08T08:24:02.323444Z",
"startedAt": "2021-09-08T08:24:02.324145Z",
"finishedAt": "2021-09-08T08:24:39.812922Z"
}
],
"limit": 1,
"from": 1,
"next": 0
}

View file

@ -0,0 +1,42 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 1,
"indexUid": "indexUID",
"status": "succeeded",
"type": "settingsUpdate",
"canceledBy": null,
"details": {
"displayedAttributes": [
"title",
"genres",
"overview",
"poster",
"release_date"
],
"searchableAttributes": [
"title",
"overview"
],
"filterableAttributes": [
"genres"
],
"stopWords": [
"of",
"the"
]
},
"error": null,
"duration": "PT37.488777S",
"enqueuedAt": "2021-09-08T08:24:02.323444Z",
"startedAt": "2021-09-08T08:24:02.324145Z",
"finishedAt": "2021-09-08T08:24:39.812922Z"
}
],
"limit": 1,
"from": 1,
"next": 0
}

View file

@ -0,0 +1,42 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 1,
"indexUid": "indexUID",
"status": "succeeded",
"type": "settingsUpdate",
"canceledBy": null,
"details": {
"displayedAttributes": [
"title",
"genres",
"overview",
"poster",
"release_date"
],
"searchableAttributes": [
"title",
"overview"
],
"filterableAttributes": [
"genres"
],
"stopWords": [
"of",
"the"
]
},
"error": null,
"duration": "PT37.488777S",
"enqueuedAt": "2021-09-08T08:24:02.323444Z",
"startedAt": "2021-09-08T08:24:02.324145Z",
"finishedAt": "2021-09-08T08:24:39.812922Z"
}
],
"limit": 1,
"from": 1,
"next": 0
}

View file

@ -0,0 +1,42 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 1,
"indexUid": "indexUID",
"status": "succeeded",
"type": "settingsUpdate",
"canceledBy": null,
"details": {
"displayedAttributes": [
"title",
"genres",
"overview",
"poster",
"release_date"
],
"searchableAttributes": [
"title",
"overview"
],
"filterableAttributes": [
"genres"
],
"stopWords": [
"of",
"the"
]
},
"error": null,
"duration": "PT37.488777S",
"enqueuedAt": "2021-09-08T08:24:02.323444Z",
"startedAt": "2021-09-08T08:24:02.324145Z",
"finishedAt": "2021-09-08T08:24:39.812922Z"
}
],
"limit": 1,
"from": 1,
"next": 0
}

View file

@ -0,0 +1,47 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 0,
"indexUid": "rubygems",
"status": "succeeded",
"type": "settingsUpdate",
"canceledBy": null,
"details": {
"displayedAttributes": [
"name",
"summary",
"description",
"version",
"total_downloads"
],
"searchableAttributes": [
"name",
"summary"
],
"filterableAttributes": [
"version"
],
"rankingRules": [
"typo",
"words",
"fame:desc",
"proximity",
"attribute",
"exactness",
"total_downloads:desc"
]
},
"error": null,
"duration": "PT0.008886S",
"enqueuedAt": "2021-09-08T08:40:28.660188Z",
"startedAt": "2021-09-08T08:40:28.660766Z",
"finishedAt": "2021-09-08T08:40:28.669652Z"
}
],
"limit": 1,
"from": 0,
"next": null
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 92,
"indexUid": "rubygems",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 1042
},
"error": null,
"duration": "PT14.034672S",
"enqueuedAt": "2021-09-08T08:40:31.390775Z",
"startedAt": "2021-09-08T08:51:39.060642Z",
"finishedAt": "2021-09-08T08:51:53.095314Z"
}
],
"limit": 1,
"from": 92,
"next": 91
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 92,
"indexUid": "rubygems",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 1042
},
"error": null,
"duration": "PT14.034672S",
"enqueuedAt": "2021-09-08T08:40:31.390775Z",
"startedAt": "2021-09-08T08:51:39.060642Z",
"finishedAt": "2021-09-08T08:51:53.095314Z"
}
],
"limit": 1,
"from": 92,
"next": 91
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 92,
"indexUid": "rubygems",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 1042
},
"error": null,
"duration": "PT14.034672S",
"enqueuedAt": "2021-09-08T08:40:31.390775Z",
"startedAt": "2021-09-08T08:51:39.060642Z",
"finishedAt": "2021-09-08T08:51:53.095314Z"
}
],
"limit": 1,
"from": 92,
"next": 91
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 92,
"indexUid": "rubygems",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 1042
},
"error": null,
"duration": "PT14.034672S",
"enqueuedAt": "2021-09-08T08:40:31.390775Z",
"startedAt": "2021-09-08T08:51:39.060642Z",
"finishedAt": "2021-09-08T08:51:53.095314Z"
}
],
"limit": 1,
"from": 92,
"next": 91
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 92,
"indexUid": "rubygems",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 1042
},
"error": null,
"duration": "PT14.034672S",
"enqueuedAt": "2021-09-08T08:40:31.390775Z",
"startedAt": "2021-09-08T08:51:39.060642Z",
"finishedAt": "2021-09-08T08:51:53.095314Z"
}
],
"limit": 1,
"from": 92,
"next": 91
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 92,
"indexUid": "rubygems",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 1042
},
"error": null,
"duration": "PT14.034672S",
"enqueuedAt": "2021-09-08T08:40:31.390775Z",
"startedAt": "2021-09-08T08:51:39.060642Z",
"finishedAt": "2021-09-08T08:51:53.095314Z"
}
],
"limit": 1,
"from": 92,
"next": 91
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 0,
"indexUid": "indexUID",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 31944
},
"error": null,
"duration": "PT41.751156S",
"enqueuedAt": "2021-09-08T08:30:30.550282Z",
"startedAt": "2021-09-08T08:30:30.553012Z",
"finishedAt": "2021-09-08T08:31:12.304168Z"
}
],
"limit": 1,
"from": 0,
"next": null
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 0,
"indexUid": "indexUID",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 31944
},
"error": null,
"duration": "PT41.751156S",
"enqueuedAt": "2021-09-08T08:30:30.550282Z",
"startedAt": "2021-09-08T08:30:30.553012Z",
"finishedAt": "2021-09-08T08:31:12.304168Z"
}
],
"limit": 1,
"from": 0,
"next": null
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 0,
"indexUid": "indexUID",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 31944
},
"error": null,
"duration": "PT41.751156S",
"enqueuedAt": "2021-09-08T08:30:30.550282Z",
"startedAt": "2021-09-08T08:30:30.553012Z",
"finishedAt": "2021-09-08T08:31:12.304168Z"
}
],
"limit": 1,
"from": 0,
"next": null
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 0,
"indexUid": "indexUID",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 31944
},
"error": null,
"duration": "PT41.751156S",
"enqueuedAt": "2021-09-08T08:30:30.550282Z",
"startedAt": "2021-09-08T08:30:30.553012Z",
"finishedAt": "2021-09-08T08:31:12.304168Z"
}
],
"limit": 1,
"from": 0,
"next": null
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 0,
"indexUid": "indexUID",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 31944
},
"error": null,
"duration": "PT41.751156S",
"enqueuedAt": "2021-09-08T08:30:30.550282Z",
"startedAt": "2021-09-08T08:30:30.553012Z",
"finishedAt": "2021-09-08T08:31:12.304168Z"
}
],
"limit": 1,
"from": 0,
"next": null
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 0,
"indexUid": "indexUID",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 31944
},
"error": null,
"duration": "PT41.751156S",
"enqueuedAt": "2021-09-08T08:30:30.550282Z",
"startedAt": "2021-09-08T08:30:30.553012Z",
"finishedAt": "2021-09-08T08:31:12.304168Z"
}
],
"limit": 1,
"from": 0,
"next": null
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 0,
"indexUid": "indexUID",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 31944
},
"error": null,
"duration": "PT41.751156S",
"enqueuedAt": "2021-09-08T08:30:30.550282Z",
"startedAt": "2021-09-08T08:30:30.553012Z",
"finishedAt": "2021-09-08T08:31:12.304168Z"
}
],
"limit": 1,
"from": 0,
"next": null
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 0,
"indexUid": "indexUID",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 31944
},
"error": null,
"duration": "PT39.941318S",
"enqueuedAt": "2021-09-08T08:21:14.742672Z",
"startedAt": "2021-09-08T08:21:14.750166Z",
"finishedAt": "2021-09-08T08:21:54.691484Z"
}
],
"limit": 1,
"from": 0,
"next": null
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 0,
"indexUid": "indexUID",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 31944
},
"error": null,
"duration": "PT39.941318S",
"enqueuedAt": "2021-09-08T08:21:14.742672Z",
"startedAt": "2021-09-08T08:21:14.750166Z",
"finishedAt": "2021-09-08T08:21:54.691484Z"
}
],
"limit": 1,
"from": 0,
"next": null
}

View file

@ -0,0 +1,42 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 1,
"indexUid": "indexUID",
"status": "succeeded",
"type": "settingsUpdate",
"canceledBy": null,
"details": {
"displayedAttributes": [
"title",
"genres",
"overview",
"poster",
"release_date"
],
"searchableAttributes": [
"title",
"overview"
],
"filterableAttributes": [
"genres"
],
"stopWords": [
"of",
"the"
]
},
"error": null,
"duration": "PT37.488777S",
"enqueuedAt": "2021-09-08T08:24:02.323444Z",
"startedAt": "2021-09-08T08:24:02.324145Z",
"finishedAt": "2021-09-08T08:24:39.812922Z"
}
],
"limit": 1,
"from": 1,
"next": 0
}

View file

@ -0,0 +1,42 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 1,
"indexUid": "indexUID",
"status": "succeeded",
"type": "settingsUpdate",
"canceledBy": null,
"details": {
"displayedAttributes": [
"title",
"genres",
"overview",
"poster",
"release_date"
],
"searchableAttributes": [
"title",
"overview"
],
"filterableAttributes": [
"genres"
],
"stopWords": [
"of",
"the"
]
},
"error": null,
"duration": "PT37.488777S",
"enqueuedAt": "2021-09-08T08:24:02.323444Z",
"startedAt": "2021-09-08T08:24:02.324145Z",
"finishedAt": "2021-09-08T08:24:39.812922Z"
}
],
"limit": 1,
"from": 1,
"next": 0
}

View file

@ -0,0 +1,42 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 1,
"indexUid": "indexUID",
"status": "succeeded",
"type": "settingsUpdate",
"canceledBy": null,
"details": {
"displayedAttributes": [
"title",
"genres",
"overview",
"poster",
"release_date"
],
"searchableAttributes": [
"title",
"overview"
],
"filterableAttributes": [
"genres"
],
"stopWords": [
"of",
"the"
]
},
"error": null,
"duration": "PT37.488777S",
"enqueuedAt": "2021-09-08T08:24:02.323444Z",
"startedAt": "2021-09-08T08:24:02.324145Z",
"finishedAt": "2021-09-08T08:24:39.812922Z"
}
],
"limit": 1,
"from": 1,
"next": 0
}

View file

@ -0,0 +1,42 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 1,
"indexUid": "indexUID",
"status": "succeeded",
"type": "settingsUpdate",
"canceledBy": null,
"details": {
"displayedAttributes": [
"title",
"genres",
"overview",
"poster",
"release_date"
],
"searchableAttributes": [
"title",
"overview"
],
"filterableAttributes": [
"genres"
],
"stopWords": [
"of",
"the"
]
},
"error": null,
"duration": "PT37.488777S",
"enqueuedAt": "2021-09-08T08:24:02.323444Z",
"startedAt": "2021-09-08T08:24:02.324145Z",
"finishedAt": "2021-09-08T08:24:39.812922Z"
}
],
"limit": 1,
"from": 1,
"next": 0
}

View file

@ -0,0 +1,42 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 1,
"indexUid": "indexUID",
"status": "succeeded",
"type": "settingsUpdate",
"canceledBy": null,
"details": {
"displayedAttributes": [
"title",
"genres",
"overview",
"poster",
"release_date"
],
"searchableAttributes": [
"title",
"overview"
],
"filterableAttributes": [
"genres"
],
"stopWords": [
"of",
"the"
]
},
"error": null,
"duration": "PT37.488777S",
"enqueuedAt": "2021-09-08T08:24:02.323444Z",
"startedAt": "2021-09-08T08:24:02.324145Z",
"finishedAt": "2021-09-08T08:24:39.812922Z"
}
],
"limit": 1,
"from": 1,
"next": 0
}

View file

@ -0,0 +1,47 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 0,
"indexUid": "rubygems",
"status": "succeeded",
"type": "settingsUpdate",
"canceledBy": null,
"details": {
"displayedAttributes": [
"name",
"summary",
"description",
"version",
"total_downloads"
],
"searchableAttributes": [
"name",
"summary"
],
"filterableAttributes": [
"version"
],
"rankingRules": [
"typo",
"words",
"fame:desc",
"proximity",
"attribute",
"exactness",
"total_downloads:desc"
]
},
"error": null,
"duration": "PT0.008886S",
"enqueuedAt": "2021-09-08T08:40:28.660188Z",
"startedAt": "2021-09-08T08:40:28.660766Z",
"finishedAt": "2021-09-08T08:40:28.669652Z"
}
],
"limit": 1,
"from": 0,
"next": null
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 92,
"indexUid": "rubygems",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 1042
},
"error": null,
"duration": "PT14.034672S",
"enqueuedAt": "2021-09-08T08:40:31.390775Z",
"startedAt": "2021-09-08T08:51:39.060642Z",
"finishedAt": "2021-09-08T08:51:53.095314Z"
}
],
"limit": 1,
"from": 92,
"next": 91
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 92,
"indexUid": "rubygems",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 1042
},
"error": null,
"duration": "PT14.034672S",
"enqueuedAt": "2021-09-08T08:40:31.390775Z",
"startedAt": "2021-09-08T08:51:39.060642Z",
"finishedAt": "2021-09-08T08:51:53.095314Z"
}
],
"limit": 1,
"from": 92,
"next": 91
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 92,
"indexUid": "rubygems",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 1042
},
"error": null,
"duration": "PT14.034672S",
"enqueuedAt": "2021-09-08T08:40:31.390775Z",
"startedAt": "2021-09-08T08:51:39.060642Z",
"finishedAt": "2021-09-08T08:51:53.095314Z"
}
],
"limit": 1,
"from": 92,
"next": 91
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 92,
"indexUid": "rubygems",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 1042
},
"error": null,
"duration": "PT14.034672S",
"enqueuedAt": "2021-09-08T08:40:31.390775Z",
"startedAt": "2021-09-08T08:51:39.060642Z",
"finishedAt": "2021-09-08T08:51:53.095314Z"
}
],
"limit": 1,
"from": 92,
"next": 91
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 92,
"indexUid": "rubygems",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 1042
},
"error": null,
"duration": "PT14.034672S",
"enqueuedAt": "2021-09-08T08:40:31.390775Z",
"startedAt": "2021-09-08T08:51:39.060642Z",
"finishedAt": "2021-09-08T08:51:53.095314Z"
}
],
"limit": 1,
"from": 92,
"next": 91
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 92,
"indexUid": "rubygems",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 0,
"indexedDocuments": 1042
},
"error": null,
"duration": "PT14.034672S",
"enqueuedAt": "2021-09-08T08:40:31.390775Z",
"startedAt": "2021-09-08T08:51:39.060642Z",
"finishedAt": "2021-09-08T08:51:53.095314Z"
}
],
"limit": 1,
"from": 92,
"next": 91
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 0,
"indexUid": "test",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 10,
"indexedDocuments": 10
},
"error": null,
"duration": "PT0.079460S",
"enqueuedAt": "2022-06-08T14:59:24.724025Z",
"startedAt": "2022-06-08T14:59:24.724983Z",
"finishedAt": "2022-06-08T14:59:24.804443Z"
}
],
"limit": 1,
"from": 0,
"next": null
}

View file

@ -0,0 +1,26 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 1,
"indexUid": "test2",
"status": "succeeded",
"type": "documentAdditionOrUpdate",
"canceledBy": null,
"details": {
"receivedDocuments": 10,
"indexedDocuments": 10
},
"error": null,
"duration": "PT0.076765S",
"enqueuedAt": "2022-06-08T14:59:29.920479Z",
"startedAt": "2022-06-08T14:59:29.921016Z",
"finishedAt": "2022-06-08T14:59:29.997781Z"
}
],
"limit": 1,
"from": 1,
"next": 0
}

View file

@ -0,0 +1,25 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 4,
"indexUid": null,
"status": "succeeded",
"type": "dumpCreation",
"canceledBy": null,
"details": {
"dumpUid": "[uid]"
},
"error": null,
"duration": "[duration]",
"enqueuedAt": "2022-06-08T15:11:40.604805Z",
"startedAt": "[date]",
"finishedAt": "[date]"
}
],
"limit": 1,
"from": 4,
"next": 3
}

View file

@ -0,0 +1,30 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 2,
"indexUid": "test",
"status": "succeeded",
"type": "settingsUpdate",
"canceledBy": null,
"details": {
"typoTolerance": {
"minWordSizeForTypos": {
"oneTypo": 10,
"twoTypos": 17
}
}
},
"error": null,
"duration": "[duration]",
"enqueuedAt": "2022-06-08T15:01:14.794184Z",
"startedAt": "[date]",
"finishedAt": "[date]"
}
],
"limit": 1,
"from": 2,
"next": 0
}

View file

@ -0,0 +1,25 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 4,
"indexUid": null,
"status": "succeeded",
"type": "dumpCreation",
"canceledBy": null,
"details": {
"dumpUid": "[uid]"
},
"error": null,
"duration": "[duration]",
"enqueuedAt": "2022-06-08T15:11:40.604805Z",
"startedAt": "[date]",
"finishedAt": "[date]"
}
],
"limit": 1,
"from": 4,
"next": 3
}

View file

@ -0,0 +1,25 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 4,
"indexUid": null,
"status": "succeeded",
"type": "dumpCreation",
"canceledBy": null,
"details": {
"dumpUid": "[uid]"
},
"error": null,
"duration": "[duration]",
"enqueuedAt": "2022-06-08T15:11:40.604805Z",
"startedAt": "[date]",
"finishedAt": "[date]"
}
],
"limit": 1,
"from": 4,
"next": 3
}

View file

@ -0,0 +1,25 @@
---
source: meilisearch/tests/dumps/mod.rs
---
{
"results": [
{
"uid": 4,
"indexUid": null,
"status": "succeeded",
"type": "dumpCreation",
"canceledBy": null,
"details": {
"dumpUid": "[uid]"
},
"error": null,
"duration": "[duration]",
"enqueuedAt": "2022-06-08T15:11:40.604805Z",
"startedAt": "[date]",
"finishedAt": "[date]"
}
],
"limit": 1,
"from": 4,
"next": 3
}

View file

@ -14,7 +14,7 @@ async fn formatted_contain_wildcard() {
index.add_documents(documents, None).await;
index.wait_task(1).await;
index.search(json!({ "q": "pesti", "attributesToRetrieve": ["father", "mother"], "attributesToHighlight": ["father", "mother", "*"], "attributesToCrop": ["doggos"], "showMatchesPosition": true }),
index.search(json!({ "q": "pésti", "attributesToRetrieve": ["father", "mother"], "attributesToHighlight": ["father", "mother", "*"], "attributesToCrop": ["doggos"], "showMatchesPosition": true }),
|response, code|
{
assert_eq!(code, 200, "{}", response);
@ -23,7 +23,7 @@ async fn formatted_contain_wildcard() {
json!({
"_formatted": {
"id": "852",
"cattos": "<em>pesti</em>",
"cattos": "<em>pésti</em>",
},
"_matchesPosition": {"cattos": [{"start": 0, "length": 5}]},
})
@ -33,13 +33,13 @@ async fn formatted_contain_wildcard() {
.await;
index
.search(json!({ "q": "pesti", "attributesToRetrieve": ["*"] }), |response, code| {
.search(json!({ "q": "pésti", "attributesToRetrieve": ["*"] }), |response, code| {
assert_eq!(code, 200, "{}", response);
assert_eq!(
response["hits"][0],
json!({
"id": 852,
"cattos": "pesti",
"cattos": "pésti",
})
);
})
@ -47,17 +47,17 @@ async fn formatted_contain_wildcard() {
index
.search(
json!({ "q": "pesti", "attributesToRetrieve": ["*"], "attributesToHighlight": ["id"], "showMatchesPosition": true }),
json!({ "q": "pésti", "attributesToRetrieve": ["*"], "attributesToHighlight": ["id"], "showMatchesPosition": true }),
|response, code| {
assert_eq!(code, 200, "{}", response);
assert_eq!(
response["hits"][0],
json!({
"id": 852,
"cattos": "pesti",
"cattos": "pésti",
"_formatted": {
"id": "852",
"cattos": "pesti",
"cattos": "pésti",
},
"_matchesPosition": {"cattos": [{"start": 0, "length": 5}]},
})
@ -68,17 +68,17 @@ async fn formatted_contain_wildcard() {
index
.search(
json!({ "q": "pesti", "attributesToRetrieve": ["*"], "attributesToCrop": ["*"] }),
json!({ "q": "pésti", "attributesToRetrieve": ["*"], "attributesToCrop": ["*"] }),
|response, code| {
assert_eq!(code, 200, "{}", response);
assert_eq!(
response["hits"][0],
json!({
"id": 852,
"cattos": "pesti",
"cattos": "pésti",
"_formatted": {
"id": "852",
"cattos": "pesti",
"cattos": "pésti",
}
})
);
@ -87,16 +87,16 @@ async fn formatted_contain_wildcard() {
.await;
index
.search(json!({ "q": "pesti", "attributesToCrop": ["*"] }), |response, code| {
.search(json!({ "q": "pésti", "attributesToCrop": ["*"] }), |response, code| {
assert_eq!(code, 200, "{}", response);
assert_eq!(
response["hits"][0],
json!({
"id": 852,
"cattos": "pesti",
"cattos": "pésti",
"_formatted": {
"id": "852",
"cattos": "pesti",
"cattos": "pésti",
}
})
);
@ -114,7 +114,7 @@ async fn format_nested() {
index.wait_task(0).await;
index
.search(json!({ "q": "pesti", "attributesToRetrieve": ["doggos"] }), |response, code| {
.search(json!({ "q": "pésti", "attributesToRetrieve": ["doggos"] }), |response, code| {
assert_eq!(code, 200, "{}", response);
assert_eq!(
response["hits"][0],
@ -136,7 +136,7 @@ async fn format_nested() {
index
.search(
json!({ "q": "pesti", "attributesToRetrieve": ["doggos.name"] }),
json!({ "q": "pésti", "attributesToRetrieve": ["doggos.name"] }),
|response, code| {
assert_eq!(code, 200, "{}", response);
assert_eq!(
@ -180,7 +180,7 @@ async fn format_nested() {
.await;
index
.search(json!({ "q": "pesti", "attributesToRetrieve": [], "attributesToHighlight": ["doggos.name"] }),
.search(json!({ "q": "pésti", "attributesToRetrieve": [], "attributesToHighlight": ["doggos.name"] }),
|response, code| {
assert_eq!(code, 200, "{}", response);
assert_eq!(
@ -202,7 +202,7 @@ async fn format_nested() {
.await;
index
.search(json!({ "q": "pesti", "attributesToRetrieve": [], "attributesToCrop": ["doggos.name"] }),
.search(json!({ "q": "pésti", "attributesToRetrieve": [], "attributesToCrop": ["doggos.name"] }),
|response, code| {
assert_eq!(code, 200, "{}", response);
assert_eq!(
@ -224,7 +224,7 @@ async fn format_nested() {
.await;
index
.search(json!({ "q": "pesti", "attributesToRetrieve": ["doggos.name"], "attributesToHighlight": ["doggos.age"] }),
.search(json!({ "q": "pésti", "attributesToRetrieve": ["doggos.name"], "attributesToHighlight": ["doggos.age"] }),
|response, code| {
assert_eq!(code, 200, "{}", response);
assert_eq!(
@ -256,7 +256,7 @@ async fn format_nested() {
.await;
index
.search(json!({ "q": "pesti", "attributesToRetrieve": [], "attributesToHighlight": ["doggos.age"], "attributesToCrop": ["doggos.name"] }),
.search(json!({ "q": "pésti", "attributesToRetrieve": [], "attributesToHighlight": ["doggos.age"], "attributesToCrop": ["doggos.name"] }),
|response, code| {
assert_eq!(code, 200, "{}", response);
assert_eq!(

View file

@ -30,7 +30,7 @@ pub(self) static DOCUMENTS: Lazy<Value> = Lazy::new(|| {
"id": "166428",
},
{
"title": "Glass",
"title": "Gläss",
"id": "450465",
}
])
@ -52,7 +52,7 @@ pub(self) static NESTED_DOCUMENTS: Lazy<Value> = Lazy::new(|| {
"age": 4,
},
],
"cattos": "pesti",
"cattos": "pésti",
},
{
"id": 654,
@ -142,7 +142,7 @@ async fn simple_search() {
index.wait_task(1).await;
index
.search(json!({"q": "pesti"}), |response, code| {
.search(json!({"q": "pésti"}), |response, code| {
assert_eq!(code, 200, "{}", response);
assert_eq!(response["hits"].as_array().unwrap().len(), 2);
})
@ -192,6 +192,31 @@ async fn test_kanji_language_detection() {
.await;
}
#[cfg(feature = "default")]
#[actix_rt::test]
async fn test_thai_language() {
let server = Server::new().await;
let index = server.index("test");
// We don't need documents, the issue is on the query side only.
let documents = json!([
{ "id": 0, "title": "สบู่สมุนไพรดอกดาวเรือง 100 กรัม จำนวน 6 ก้อน" },
{ "id": 1, "title": "สบู่สมุนไพรชาเขียว 100 กรัม จำนวน 6 ก้อน" },
{ "id": 2, "title": "สบู่สมุนไพรฝางแดงผสมว่านหางจรเข้ 100 กรัม จำนวน 6 ก้อน" }
]);
index.add_documents(documents, None).await;
index.wait_task(0).await;
index.update_settings(json!({"rankingRules": ["exactness"]})).await;
index.wait_task(1).await;
index
.search(json!({"q": "สบู"}), |response, code| {
assert_eq!(code, 200, "{}", response);
})
.await;
}
#[actix_rt::test]
async fn search_multiple_params() {
let server = Server::new().await;
@ -225,7 +250,7 @@ async fn search_multiple_params() {
index
.search(
json!({
"q": "pesti",
"q": "pésti",
"attributesToCrop": ["catto:2"],
"attributesToHighlight": ["catto"],
"limit": 2,
@ -256,7 +281,7 @@ async fn search_with_filter_string_notation() {
index
.search(
json!({
"filter": "title = Glass"
"filter": "title = Gläss"
}),
|response, code| {
assert_eq!(code, 200, "{}", response);
@ -280,7 +305,7 @@ async fn search_with_filter_string_notation() {
index
.search(
json!({
"filter": "cattos = pesti"
"filter": "cattos = pésti"
}),
|response, code| {
assert_eq!(code, 200, "{}", response);
@ -318,7 +343,7 @@ async fn search_with_filter_array_notation() {
let (response, code) = index
.search_post(json!({
"filter": ["title = Glass"]
"filter": ["title = Gläss"]
}))
.await;
assert_eq!(code, 200, "{}", response);
@ -326,7 +351,7 @@ async fn search_with_filter_array_notation() {
let (response, code) = index
.search_post(json!({
"filter": [["title = Glass", "title = \"Shazam!\"", "title = \"Escape Room\""]]
"filter": [["title = Gläss", "title = \"Shazam!\"", "title = \"Escape Room\""]]
}))
.await;
assert_eq!(code, 200, "{}", response);

View file

@ -71,7 +71,7 @@ async fn simple_search_single_index() {
"indexUid": "test",
"hits": [
{
"title": "Glass",
"title": "Gläss",
"id": "450465"
}
],
@ -166,7 +166,7 @@ async fn simple_search_two_indexes() {
let (response, code) = server
.multi_search(json!({"queries": [
{"indexUid" : "test", "q": "glass"},
{"indexUid": "nested", "q": "pesti"},
{"indexUid": "nested", "q": "pésti"},
]}))
.await;
snapshot!(code, @"200 OK");
@ -176,7 +176,7 @@ async fn simple_search_two_indexes() {
"indexUid": "test",
"hits": [
{
"title": "Glass",
"title": "Gläss",
"id": "450465"
}
],
@ -203,7 +203,7 @@ async fn simple_search_two_indexes() {
"age": 4
}
],
"cattos": "pesti"
"cattos": "pésti"
},
{
"id": 654,
@ -221,7 +221,7 @@ async fn simple_search_two_indexes() {
]
}
],
"query": "pesti",
"query": "pésti",
"processingTimeMs": "[time]",
"limit": 20,
"offset": 0,
@ -243,7 +243,7 @@ async fn search_one_index_doesnt_exist() {
let (response, code) = server
.multi_search(json!({"queries": [
{"indexUid" : "test", "q": "glass"},
{"indexUid": "nested", "q": "pesti"},
{"indexUid": "nested", "q": "pésti"},
]}))
.await;
snapshot!(code, @"400 Bad Request");
@ -264,7 +264,7 @@ async fn search_multiple_indexes_dont_exist() {
let (response, code) = server
.multi_search(json!({"queries": [
{"indexUid" : "test", "q": "glass"},
{"indexUid": "nested", "q": "pesti"},
{"indexUid": "nested", "q": "pésti"},
]}))
.await;
snapshot!(code, @"400 Bad Request");
@ -296,7 +296,7 @@ async fn search_one_query_error() {
let (response, code) = server
.multi_search(json!({"queries": [
{"indexUid" : "test", "q": "glass", "facets": ["title"]},
{"indexUid": "nested", "q": "pesti"},
{"indexUid": "nested", "q": "pésti"},
]}))
.await;
snapshot!(code, @"400 Bad Request");
@ -328,7 +328,7 @@ async fn search_multiple_query_errors() {
let (response, code) = server
.multi_search(json!({"queries": [
{"indexUid" : "test", "q": "glass", "facets": ["title"]},
{"indexUid": "nested", "q": "pesti", "facets": ["doggos"]},
{"indexUid": "nested", "q": "pésti", "facets": ["doggos"]},
]}))
.await;
snapshot!(code, @"400 Bad Request");

View file

@ -1,8 +1,8 @@
use std::time::Duration;
use actix_rt::time::sleep;
use meilisearch::option::ScheduleSnapshot;
use meilisearch::Opt;
use tokio::time::sleep;
use crate::common::server::default_settings;
use crate::common::{GetAllDocumentsOptions, Server};
@ -23,21 +23,20 @@ macro_rules! verify_snapshot {
};
let (snapshot, _) = test(snapshot.clone()).await;
let (orig, _) = test(orig.clone()).await;
assert_eq!(snapshot, orig);
assert_eq!(snapshot, orig, "Got \n{}\nWhile expecting:\n{}", serde_json::to_string_pretty(&snapshot).unwrap(), serde_json::to_string_pretty(&orig).unwrap());
}
)*
};
}
#[actix_rt::test]
#[ignore] // TODO: unignore
async fn perform_snapshot() {
let temp = tempfile::tempdir().unwrap();
let snapshot_dir = tempfile::tempdir().unwrap();
let options = Opt {
snapshot_dir: snapshot_dir.path().to_owned(),
schedule_snapshot: ScheduleSnapshot::Enabled(1),
schedule_snapshot: ScheduleSnapshot::Enabled(2),
..default_settings(temp.path())
};
@ -61,6 +60,16 @@ async fn perform_snapshot() {
let temp = tempfile::tempdir().unwrap();
let snapshot_path = snapshot_dir.path().to_owned().join("db.snapshot");
#[cfg_attr(windows, allow(unused))]
let snapshot_meta = std::fs::metadata(&snapshot_path).unwrap();
#[cfg(unix)]
{
use std::os::unix::fs::PermissionsExt;
let mode = snapshot_meta.permissions().mode();
// rwxrwxrwx
meili_snap::snapshot!(format!("{:b}", mode), @"1000000100100100");
}
let options = Opt { import_snapshot: Some(snapshot_path), ..default_settings(temp.path()) };
@ -71,7 +80,10 @@ async fn perform_snapshot() {
// for some reason the db sizes differ. this may be due to the compaction options we have
// set when performing the snapshot
//server.stats(),
server.tasks(),
// The original instance contains the snapshotCreation task, while the snapshotted-instance does not. For this reason we need to compare the task queue **after** the task 4
server.tasks_filter("?from=2"),
server.index("test").get_all_documents(GetAllDocumentsOptions::default()),
server.index("test").settings(),
server.index("test1").get_all_documents(GetAllDocumentsOptions::default()),