mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-22 12:54:26 +01:00
rename words_position to wordsPosition; fix #483
This commit is contained in:
parent
dda08d60d2
commit
47009615ee
@ -1063,7 +1063,7 @@ mod tests {
|
||||
"words",
|
||||
"proximity",
|
||||
"attribute",
|
||||
"words_position",
|
||||
"wordsPosition",
|
||||
"exactness",
|
||||
"dsc(release_date)"
|
||||
],
|
||||
|
@ -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)?;
|
||||
|
@ -61,7 +61,7 @@ pub fn enrich_server_with_movies_settings(
|
||||
"words",
|
||||
"proximity",
|
||||
"attribute",
|
||||
"words_position",
|
||||
"wordsPosition",
|
||||
"dsc(popularity)",
|
||||
"exactness",
|
||||
"dsc(vote_average)",
|
||||
|
@ -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)"
|
||||
|
@ -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)",
|
||||
],
|
||||
|
@ -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)",
|
||||
]);
|
||||
|
Loading…
Reference in New Issue
Block a user