mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-27 04:25:06 +08:00
rename words_position to wordsPosition; fix #483
This commit is contained in:
parent
dda08d60d2
commit
47009615ee
@ -1063,7 +1063,7 @@ mod tests {
|
|||||||
"words",
|
"words",
|
||||||
"proximity",
|
"proximity",
|
||||||
"attribute",
|
"attribute",
|
||||||
"words_position",
|
"wordsPosition",
|
||||||
"exactness",
|
"exactness",
|
||||||
"dsc(release_date)"
|
"dsc(release_date)"
|
||||||
],
|
],
|
||||||
|
@ -126,7 +126,7 @@ impl FromStr for RankingRule {
|
|||||||
"words" => RankingRule::Words,
|
"words" => RankingRule::Words,
|
||||||
"proximity" => RankingRule::Proximity,
|
"proximity" => RankingRule::Proximity,
|
||||||
"attribute" => RankingRule::Attribute,
|
"attribute" => RankingRule::Attribute,
|
||||||
"words_position" => RankingRule::WordsPosition,
|
"wordsPosition" => RankingRule::WordsPosition,
|
||||||
"exactness" => RankingRule::Exactness,
|
"exactness" => RankingRule::Exactness,
|
||||||
_ => {
|
_ => {
|
||||||
let captures = RANKING_RULE_REGEX.captures(s).ok_or(RankingRuleConversionError)?;
|
let captures = RANKING_RULE_REGEX.captures(s).ok_or(RankingRuleConversionError)?;
|
||||||
|
@ -61,7 +61,7 @@ pub fn enrich_server_with_movies_settings(
|
|||||||
"words",
|
"words",
|
||||||
"proximity",
|
"proximity",
|
||||||
"attribute",
|
"attribute",
|
||||||
"words_position",
|
"wordsPosition",
|
||||||
"dsc(popularity)",
|
"dsc(popularity)",
|
||||||
"exactness",
|
"exactness",
|
||||||
"dsc(vote_average)",
|
"dsc(vote_average)",
|
||||||
|
@ -630,7 +630,7 @@ fn search_with_settings_basic() {
|
|||||||
"words",
|
"words",
|
||||||
"proximity",
|
"proximity",
|
||||||
"attribute",
|
"attribute",
|
||||||
"words_position",
|
"wordsPosition",
|
||||||
"dsc(popularity)",
|
"dsc(popularity)",
|
||||||
"exactness",
|
"exactness",
|
||||||
"dsc(vote_average)"
|
"dsc(vote_average)"
|
||||||
@ -736,7 +736,7 @@ fn search_with_settings_stop_words() {
|
|||||||
"words",
|
"words",
|
||||||
"proximity",
|
"proximity",
|
||||||
"attribute",
|
"attribute",
|
||||||
"words_position",
|
"wordsPosition",
|
||||||
"dsc(popularity)",
|
"dsc(popularity)",
|
||||||
"exactness",
|
"exactness",
|
||||||
"dsc(vote_average)"
|
"dsc(vote_average)"
|
||||||
@ -843,7 +843,7 @@ fn search_with_settings_synonyms() {
|
|||||||
"words",
|
"words",
|
||||||
"proximity",
|
"proximity",
|
||||||
"attribute",
|
"attribute",
|
||||||
"words_position",
|
"wordsPosition",
|
||||||
"dsc(popularity)",
|
"dsc(popularity)",
|
||||||
"exactness",
|
"exactness",
|
||||||
"dsc(vote_average)"
|
"dsc(vote_average)"
|
||||||
@ -955,7 +955,7 @@ fn search_with_settings_ranking_rules() {
|
|||||||
"words",
|
"words",
|
||||||
"proximity",
|
"proximity",
|
||||||
"attribute",
|
"attribute",
|
||||||
"words_position",
|
"wordsPosition",
|
||||||
"asc(vote_average)",
|
"asc(vote_average)",
|
||||||
"exactness",
|
"exactness",
|
||||||
"dsc(popularity)"
|
"dsc(popularity)"
|
||||||
@ -1062,7 +1062,7 @@ fn search_with_settings_searchable_attributes() {
|
|||||||
"words",
|
"words",
|
||||||
"proximity",
|
"proximity",
|
||||||
"attribute",
|
"attribute",
|
||||||
"words_position",
|
"wordsPosition",
|
||||||
"dsc(popularity)",
|
"dsc(popularity)",
|
||||||
"exactness",
|
"exactness",
|
||||||
"dsc(vote_average)"
|
"dsc(vote_average)"
|
||||||
@ -1168,7 +1168,7 @@ fn search_with_settings_displayed_attributes() {
|
|||||||
"words",
|
"words",
|
||||||
"proximity",
|
"proximity",
|
||||||
"attribute",
|
"attribute",
|
||||||
"words_position",
|
"wordsPosition",
|
||||||
"dsc(popularity)",
|
"dsc(popularity)",
|
||||||
"exactness",
|
"exactness",
|
||||||
"dsc(vote_average)"
|
"dsc(vote_average)"
|
||||||
@ -1239,7 +1239,7 @@ fn search_with_settings_searchable_attributes_2() {
|
|||||||
"words",
|
"words",
|
||||||
"proximity",
|
"proximity",
|
||||||
"attribute",
|
"attribute",
|
||||||
"words_position",
|
"wordsPosition",
|
||||||
"dsc(popularity)",
|
"dsc(popularity)",
|
||||||
"exactness",
|
"exactness",
|
||||||
"dsc(vote_average)"
|
"dsc(vote_average)"
|
||||||
|
@ -45,7 +45,7 @@ fn write_all_and_delete() {
|
|||||||
"words",
|
"words",
|
||||||
"proximity",
|
"proximity",
|
||||||
"attribute",
|
"attribute",
|
||||||
"words_position",
|
"wordsPosition",
|
||||||
"exactness",
|
"exactness",
|
||||||
"dsc(release_date)",
|
"dsc(release_date)",
|
||||||
"dsc(rank)",
|
"dsc(rank)",
|
||||||
@ -131,7 +131,7 @@ fn write_all_and_delete() {
|
|||||||
"words",
|
"words",
|
||||||
"proximity",
|
"proximity",
|
||||||
"attribute",
|
"attribute",
|
||||||
"words_position",
|
"wordsPosition",
|
||||||
"exactness"
|
"exactness"
|
||||||
],
|
],
|
||||||
"distinctAttribute": null,
|
"distinctAttribute": null,
|
||||||
@ -196,7 +196,7 @@ fn write_all_and_update() {
|
|||||||
"words",
|
"words",
|
||||||
"proximity",
|
"proximity",
|
||||||
"attribute",
|
"attribute",
|
||||||
"words_position",
|
"wordsPosition",
|
||||||
"exactness",
|
"exactness",
|
||||||
"dsc(release_date)",
|
"dsc(release_date)",
|
||||||
"dsc(rank)",
|
"dsc(rank)",
|
||||||
@ -262,7 +262,7 @@ fn write_all_and_update() {
|
|||||||
"words",
|
"words",
|
||||||
"proximity",
|
"proximity",
|
||||||
"attribute",
|
"attribute",
|
||||||
"words_position",
|
"wordsPosition",
|
||||||
"exactness",
|
"exactness",
|
||||||
"dsc(release_date)",
|
"dsc(release_date)",
|
||||||
],
|
],
|
||||||
@ -315,7 +315,7 @@ fn write_all_and_update() {
|
|||||||
"words",
|
"words",
|
||||||
"proximity",
|
"proximity",
|
||||||
"attribute",
|
"attribute",
|
||||||
"words_position",
|
"wordsPosition",
|
||||||
"exactness",
|
"exactness",
|
||||||
"dsc(release_date)",
|
"dsc(release_date)",
|
||||||
],
|
],
|
||||||
|
@ -43,7 +43,7 @@ fn write_all_and_delete() {
|
|||||||
"words",
|
"words",
|
||||||
"proximity",
|
"proximity",
|
||||||
"attribute",
|
"attribute",
|
||||||
"words_position",
|
"wordsPosition",
|
||||||
"exactness",
|
"exactness",
|
||||||
"dsc(release_date)",
|
"dsc(release_date)",
|
||||||
"dsc(rank)",
|
"dsc(rank)",
|
||||||
@ -100,7 +100,7 @@ fn write_all_and_delete() {
|
|||||||
"words",
|
"words",
|
||||||
"proximity",
|
"proximity",
|
||||||
"attribute",
|
"attribute",
|
||||||
"words_position",
|
"wordsPosition",
|
||||||
"exactness"
|
"exactness"
|
||||||
]);
|
]);
|
||||||
|
|
||||||
@ -141,7 +141,7 @@ fn write_all_and_update() {
|
|||||||
"words",
|
"words",
|
||||||
"proximity",
|
"proximity",
|
||||||
"attribute",
|
"attribute",
|
||||||
"words_position",
|
"wordsPosition",
|
||||||
"exactness",
|
"exactness",
|
||||||
"dsc(release_date)",
|
"dsc(release_date)",
|
||||||
"dsc(rank)",
|
"dsc(rank)",
|
||||||
@ -178,7 +178,7 @@ fn write_all_and_update() {
|
|||||||
"words",
|
"words",
|
||||||
"proximity",
|
"proximity",
|
||||||
"attribute",
|
"attribute",
|
||||||
"words_position",
|
"wordsPosition",
|
||||||
"exactness",
|
"exactness",
|
||||||
"dsc(release_date)",
|
"dsc(release_date)",
|
||||||
]);
|
]);
|
||||||
@ -210,7 +210,7 @@ fn write_all_and_update() {
|
|||||||
"words",
|
"words",
|
||||||
"proximity",
|
"proximity",
|
||||||
"attribute",
|
"attribute",
|
||||||
"words_position",
|
"wordsPosition",
|
||||||
"exactness",
|
"exactness",
|
||||||
"dsc(release_date)",
|
"dsc(release_date)",
|
||||||
]);
|
]);
|
||||||
|
Loading…
Reference in New Issue
Block a user