mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 03:47:02 +02:00
change wording of custom ranking rules dsc
-> desc
; #490
This commit is contained in:
parent
4d27318b72
commit
6016f2e941
7 changed files with 34 additions and 34 deletions
|
@ -313,7 +313,7 @@ impl<'a> SearchBuilder<'a> {
|
|||
Err(err) => error!("Error during criteria builder; {:?}", err),
|
||||
}
|
||||
}
|
||||
RankingRule::Dsc(field) => {
|
||||
RankingRule::Desc(field) => {
|
||||
match SortByAttr::higher_is_better(&ranked_map, &schema, &field) {
|
||||
Ok(rule) => builder.push(rule),
|
||||
Err(err) => error!("Error during criteria builder; {:?}", err),
|
||||
|
|
|
@ -62,9 +62,9 @@ pub fn enrich_server_with_movies_settings(
|
|||
"proximity",
|
||||
"attribute",
|
||||
"wordsPosition",
|
||||
"dsc(popularity)",
|
||||
"desc(popularity)",
|
||||
"exactness",
|
||||
"dsc(vote_average)",
|
||||
"desc(vote_average)",
|
||||
],
|
||||
"distinctAttribute": null,
|
||||
"searchableAttributes": [
|
||||
|
|
|
@ -631,9 +631,9 @@ fn search_with_settings_basic() {
|
|||
"proximity",
|
||||
"attribute",
|
||||
"wordsPosition",
|
||||
"dsc(popularity)",
|
||||
"desc(popularity)",
|
||||
"exactness",
|
||||
"dsc(vote_average)"
|
||||
"desc(vote_average)"
|
||||
],
|
||||
"distinctAttribute": null,
|
||||
"identifier": "id",
|
||||
|
@ -737,9 +737,9 @@ fn search_with_settings_stop_words() {
|
|||
"proximity",
|
||||
"attribute",
|
||||
"wordsPosition",
|
||||
"dsc(popularity)",
|
||||
"desc(popularity)",
|
||||
"exactness",
|
||||
"dsc(vote_average)"
|
||||
"desc(vote_average)"
|
||||
],
|
||||
"distinctAttribute": null,
|
||||
"identifier": "id",
|
||||
|
@ -844,9 +844,9 @@ fn search_with_settings_synonyms() {
|
|||
"proximity",
|
||||
"attribute",
|
||||
"wordsPosition",
|
||||
"dsc(popularity)",
|
||||
"desc(popularity)",
|
||||
"exactness",
|
||||
"dsc(vote_average)"
|
||||
"desc(vote_average)"
|
||||
],
|
||||
"distinctAttribute": null,
|
||||
"identifier": "id",
|
||||
|
@ -958,7 +958,7 @@ fn search_with_settings_ranking_rules() {
|
|||
"wordsPosition",
|
||||
"asc(vote_average)",
|
||||
"exactness",
|
||||
"dsc(popularity)"
|
||||
"desc(popularity)"
|
||||
],
|
||||
"distinctAttribute": null,
|
||||
"identifier": "id",
|
||||
|
@ -1063,9 +1063,9 @@ fn search_with_settings_searchable_attributes() {
|
|||
"proximity",
|
||||
"attribute",
|
||||
"wordsPosition",
|
||||
"dsc(popularity)",
|
||||
"desc(popularity)",
|
||||
"exactness",
|
||||
"dsc(vote_average)"
|
||||
"desc(vote_average)"
|
||||
],
|
||||
"distinctAttribute": null,
|
||||
"identifier": "id",
|
||||
|
@ -1169,9 +1169,9 @@ fn search_with_settings_displayed_attributes() {
|
|||
"proximity",
|
||||
"attribute",
|
||||
"wordsPosition",
|
||||
"dsc(popularity)",
|
||||
"desc(popularity)",
|
||||
"exactness",
|
||||
"dsc(vote_average)"
|
||||
"desc(vote_average)"
|
||||
],
|
||||
"distinctAttribute": null,
|
||||
"identifier": "id",
|
||||
|
@ -1240,9 +1240,9 @@ fn search_with_settings_searchable_attributes_2() {
|
|||
"proximity",
|
||||
"attribute",
|
||||
"wordsPosition",
|
||||
"dsc(popularity)",
|
||||
"desc(popularity)",
|
||||
"exactness",
|
||||
"dsc(vote_average)"
|
||||
"desc(vote_average)"
|
||||
],
|
||||
"distinctAttribute": null,
|
||||
"identifier": "id",
|
||||
|
|
|
@ -47,8 +47,8 @@ fn write_all_and_delete() {
|
|||
"attribute",
|
||||
"wordsPosition",
|
||||
"exactness",
|
||||
"dsc(release_date)",
|
||||
"dsc(rank)",
|
||||
"desc(release_date)",
|
||||
"desc(rank)",
|
||||
],
|
||||
"distinctAttribute": "movie_id",
|
||||
"searchableAttributes": [
|
||||
|
@ -198,8 +198,8 @@ fn write_all_and_update() {
|
|||
"attribute",
|
||||
"wordsPosition",
|
||||
"exactness",
|
||||
"dsc(release_date)",
|
||||
"dsc(rank)",
|
||||
"desc(release_date)",
|
||||
"desc(rank)",
|
||||
],
|
||||
"distinctAttribute": "movie_id",
|
||||
"searchableAttributes": [
|
||||
|
@ -264,7 +264,7 @@ fn write_all_and_update() {
|
|||
"attribute",
|
||||
"wordsPosition",
|
||||
"exactness",
|
||||
"dsc(release_date)",
|
||||
"desc(release_date)",
|
||||
],
|
||||
"searchableAttributes": [
|
||||
"title",
|
||||
|
@ -317,7 +317,7 @@ fn write_all_and_update() {
|
|||
"attribute",
|
||||
"wordsPosition",
|
||||
"exactness",
|
||||
"dsc(release_date)",
|
||||
"desc(release_date)",
|
||||
],
|
||||
"distinctAttribute": null,
|
||||
"searchableAttributes": [
|
||||
|
|
|
@ -45,8 +45,8 @@ fn write_all_and_delete() {
|
|||
"attribute",
|
||||
"wordsPosition",
|
||||
"exactness",
|
||||
"dsc(release_date)",
|
||||
"dsc(rank)",
|
||||
"desc(release_date)",
|
||||
"desc(rank)",
|
||||
]);
|
||||
|
||||
let body = json.to_string().into_bytes();
|
||||
|
@ -143,8 +143,8 @@ fn write_all_and_update() {
|
|||
"attribute",
|
||||
"wordsPosition",
|
||||
"exactness",
|
||||
"dsc(release_date)",
|
||||
"dsc(rank)",
|
||||
"desc(release_date)",
|
||||
"desc(rank)",
|
||||
]);
|
||||
|
||||
let body = json.to_string().into_bytes();
|
||||
|
@ -180,7 +180,7 @@ fn write_all_and_update() {
|
|||
"attribute",
|
||||
"wordsPosition",
|
||||
"exactness",
|
||||
"dsc(release_date)",
|
||||
"desc(release_date)",
|
||||
]);
|
||||
|
||||
let body_update = json_update.to_string().into_bytes();
|
||||
|
@ -212,7 +212,7 @@ fn write_all_and_update() {
|
|||
"attribute",
|
||||
"wordsPosition",
|
||||
"exactness",
|
||||
"dsc(release_date)",
|
||||
"desc(release_date)",
|
||||
]);
|
||||
|
||||
assert_json_eq!(res_expected, res_value, ordered: false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue