rename words_position to wordsPosition; fix #483

This commit is contained in:
qdequele 2020-02-27 14:31:08 +01:00
parent dda08d60d2
commit 47009615ee
No known key found for this signature in database
GPG Key ID: B3F0A000EBF11745
6 changed files with 20 additions and 20 deletions

View File

@ -1063,7 +1063,7 @@ mod tests {
"words",
"proximity",
"attribute",
"words_position",
"wordsPosition",
"exactness",
"dsc(release_date)"
],

View File

@ -126,7 +126,7 @@ impl FromStr for RankingRule {
"words" => RankingRule::Words,
"proximity" => RankingRule::Proximity,
"attribute" => RankingRule::Attribute,
"words_position" => RankingRule::WordsPosition,
"wordsPosition" => RankingRule::WordsPosition,
"exactness" => RankingRule::Exactness,
_ => {
let captures = RANKING_RULE_REGEX.captures(s).ok_or(RankingRuleConversionError)?;

View File

@ -61,7 +61,7 @@ pub fn enrich_server_with_movies_settings(
"words",
"proximity",
"attribute",
"words_position",
"wordsPosition",
"dsc(popularity)",
"exactness",
"dsc(vote_average)",

View File

@ -630,7 +630,7 @@ fn search_with_settings_basic() {
"words",
"proximity",
"attribute",
"words_position",
"wordsPosition",
"dsc(popularity)",
"exactness",
"dsc(vote_average)"
@ -736,7 +736,7 @@ fn search_with_settings_stop_words() {
"words",
"proximity",
"attribute",
"words_position",
"wordsPosition",
"dsc(popularity)",
"exactness",
"dsc(vote_average)"
@ -843,7 +843,7 @@ fn search_with_settings_synonyms() {
"words",
"proximity",
"attribute",
"words_position",
"wordsPosition",
"dsc(popularity)",
"exactness",
"dsc(vote_average)"
@ -955,7 +955,7 @@ fn search_with_settings_ranking_rules() {
"words",
"proximity",
"attribute",
"words_position",
"wordsPosition",
"asc(vote_average)",
"exactness",
"dsc(popularity)"
@ -1062,7 +1062,7 @@ fn search_with_settings_searchable_attributes() {
"words",
"proximity",
"attribute",
"words_position",
"wordsPosition",
"dsc(popularity)",
"exactness",
"dsc(vote_average)"
@ -1168,7 +1168,7 @@ fn search_with_settings_displayed_attributes() {
"words",
"proximity",
"attribute",
"words_position",
"wordsPosition",
"dsc(popularity)",
"exactness",
"dsc(vote_average)"
@ -1239,7 +1239,7 @@ fn search_with_settings_searchable_attributes_2() {
"words",
"proximity",
"attribute",
"words_position",
"wordsPosition",
"dsc(popularity)",
"exactness",
"dsc(vote_average)"

View File

@ -45,7 +45,7 @@ fn write_all_and_delete() {
"words",
"proximity",
"attribute",
"words_position",
"wordsPosition",
"exactness",
"dsc(release_date)",
"dsc(rank)",
@ -131,7 +131,7 @@ fn write_all_and_delete() {
"words",
"proximity",
"attribute",
"words_position",
"wordsPosition",
"exactness"
],
"distinctAttribute": null,
@ -196,7 +196,7 @@ fn write_all_and_update() {
"words",
"proximity",
"attribute",
"words_position",
"wordsPosition",
"exactness",
"dsc(release_date)",
"dsc(rank)",
@ -262,7 +262,7 @@ fn write_all_and_update() {
"words",
"proximity",
"attribute",
"words_position",
"wordsPosition",
"exactness",
"dsc(release_date)",
],
@ -315,7 +315,7 @@ fn write_all_and_update() {
"words",
"proximity",
"attribute",
"words_position",
"wordsPosition",
"exactness",
"dsc(release_date)",
],

View File

@ -43,7 +43,7 @@ fn write_all_and_delete() {
"words",
"proximity",
"attribute",
"words_position",
"wordsPosition",
"exactness",
"dsc(release_date)",
"dsc(rank)",
@ -100,7 +100,7 @@ fn write_all_and_delete() {
"words",
"proximity",
"attribute",
"words_position",
"wordsPosition",
"exactness"
]);
@ -141,7 +141,7 @@ fn write_all_and_update() {
"words",
"proximity",
"attribute",
"words_position",
"wordsPosition",
"exactness",
"dsc(release_date)",
"dsc(rank)",
@ -178,7 +178,7 @@ fn write_all_and_update() {
"words",
"proximity",
"attribute",
"words_position",
"wordsPosition",
"exactness",
"dsc(release_date)",
]);
@ -210,7 +210,7 @@ fn write_all_and_update() {
"words",
"proximity",
"attribute",
"words_position",
"wordsPosition",
"exactness",
"dsc(release_date)",
]);