diff --git a/meilisearch/tests/search/locales.rs b/meilisearch/tests/search/locales.rs index dbc4fcc30..b9e70c5b1 100644 --- a/meilisearch/tests/search/locales.rs +++ b/meilisearch/tests/search/locales.rs @@ -400,9 +400,9 @@ async fn force_locales() { ] }, "_formatted": { - "name_zh": "巨人", + "name_zh": "进击的巨人", "author_zh": "諫山創", - "description_zh": "巨人是日本的漫画系列,由諫山 創作画。", + "description_zh": "进击的巨人是日本的漫画系列,由諫山 創作画。", "id": "853", "_vectors": { "manual": [ @@ -447,9 +447,9 @@ async fn force_locales() { ] }, "_formatted": { - "name_zh": "巨人", + "name_zh": "进击的巨人", "author_zh": "諫山創", - "description_zh": "巨人是日本的漫画系列,由諫山 創作画。", + "description_zh": "进击的巨人是日本的漫画系列,由諫山 創作画。", "id": "853", "_vectors": { "manual": [ @@ -524,9 +524,9 @@ async fn force_locales_with_pattern() { ] }, "_formatted": { - "name_zh": "巨人", + "name_zh": "进击的巨人", "author_zh": "諫山創", - "description_zh": "巨人是日本的漫画系列,由諫山 創作画。", + "description_zh": "进击的巨人是日本的漫画系列,由諫山 創作画。", "id": "853", "_vectors": { "manual": [ @@ -571,9 +571,9 @@ async fn force_locales_with_pattern() { ] }, "_formatted": { - "name_zh": "巨人", + "name_zh": "进击的巨人", "author_zh": "諫山創", - "description_zh": "巨人是日本的漫画系列,由諫山 創作画。", + "description_zh": "进击的巨人是日本的漫画系列,由諫山 創作画。", "id": "853", "_vectors": { "manual": [ @@ -689,8 +689,8 @@ async fn force_locales_with_pattern_nested() { "author": "諫山 創" }, "document_zh": { - "name": "巨人", - "description": "巨人是日本的漫画系列,由諫山 創作画。", + "name": "进击的巨人", + "description": "进击的巨人是日本的漫画系列,由諫山 創作画。", "author": "諫山創" }, "id": "852", @@ -788,9 +788,9 @@ async fn force_different_locales_with_pattern() { ] }, "_formatted": { - "name_zh": "巨人", + "name_zh": "进击的巨人", "author_zh": "諫山創", - "description_zh": "巨人是日本的漫画系列,由諫山 創作画。", + "description_zh": "进击的巨人是日本的漫画系列,由諫山 創作画。", "id": "853", "_vectors": { "manual": [ @@ -889,9 +889,9 @@ async fn auto_infer_locales_at_search_with_attributes_to_search_on() { ] }, "_formatted": { - "name_zh": "巨人", + "name_zh": "进击的巨人", "author_zh": "諫山創", - "description_zh": "巨人是日本的漫画系列,由諫山 創作画。", + "description_zh": "进击的巨人是日本的漫画系列,由諫山 創作画。", "id": "853", "_vectors": { "manual": [ @@ -965,9 +965,9 @@ async fn auto_infer_locales_at_search() { ] }, "_formatted": { - "name_zh": "巨人", + "name_zh": "进击的巨人", "author_zh": "諫山創", - "description_zh": "巨人是日本的漫画系列,由諫山 創作画。", + "description_zh": "进击的巨人是日本的漫画系列,由諫山 創作画。", "id": "853", "_vectors": { "manual": [ @@ -1011,9 +1011,9 @@ async fn auto_infer_locales_at_search() { ] }, "_formatted": { - "name_zh": "巨人", + "name_zh": "进击的巨人", "author_zh": "諫山創", - "description_zh": "巨人是日本的漫画系列,由諫山 創作画。", + "description_zh": "进击的巨人是日本的漫画系列,由諫山 創作画。", "id": "853", "_vectors": { "manual": [ @@ -1057,9 +1057,9 @@ async fn auto_infer_locales_at_search() { ] }, "_formatted": { - "name_zh": "巨人", + "name_zh": "进击的巨人", "author_zh": "諫山創", - "description_zh": "巨人是日本的漫画系列,由諫山 創作画。", + "description_zh": "进击的巨人是日本的漫画系列,由諫山 創作画。", "id": "853", "_vectors": { "manual": [ @@ -1177,8 +1177,8 @@ async fn force_different_locales_with_pattern_nested() { "author": "諫山 創" }, "document_zh": { - "name": "巨人", - "description": "巨人是日本的漫画系列,由諫山 創作画。", + "name": "进击的巨人", + "description": "进击的巨人是日本的漫画系列,由諫山 創作画。", "author": "諫山創" }, "id": "852", diff --git a/milli/src/search/new/matches/mod.rs b/milli/src/search/new/matches/mod.rs index df110aff9..09d3db575 100644 --- a/milli/src/search/new/matches/mod.rs +++ b/milli/src/search/new/matches/mod.rs @@ -919,7 +919,7 @@ mod tests { // should return 10 words with a marker at the start as well the end, and the highlighted matches. insta::assert_snapshot!( matcher.format(format_options), - @"…had the power to split the world between those who…" + @"…the power to split the world between those who embraced…" ); let builder = MatcherBuilder::new_test(&rtxn, &temp_index, "those \"and those\"");