mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-27 04:25:06 +08:00
Fix snapshots to use new phrase type
This commit is contained in:
parent
c8c666c6a6
commit
d187b32a28
@ -1081,7 +1081,7 @@ mod test {
|
|||||||
OR
|
OR
|
||||||
AND
|
AND
|
||||||
OR
|
OR
|
||||||
PHRASE ["word", "split"]
|
PHRASE [Some("word"), Some("split")]
|
||||||
Tolerant { word: "wordsplit", max typo: 2 }
|
Tolerant { word: "wordsplit", max typo: 2 }
|
||||||
Exact { word: "fish" }
|
Exact { word: "fish" }
|
||||||
Tolerant { word: "wordsplitfish", max typo: 1 }
|
Tolerant { word: "wordsplitfish", max typo: 1 }
|
||||||
@ -1100,7 +1100,7 @@ mod test {
|
|||||||
|
|
||||||
insta::assert_debug_snapshot!(query_tree, @r###"
|
insta::assert_debug_snapshot!(query_tree, @r###"
|
||||||
OR
|
OR
|
||||||
PHRASE ["quickbrown", "fox"]
|
PHRASE [Some("quickbrown"), Some("fox")]
|
||||||
PrefixTolerant { word: "quickbrownfox", max typo: 2 }
|
PrefixTolerant { word: "quickbrownfox", max typo: 2 }
|
||||||
"###);
|
"###);
|
||||||
}
|
}
|
||||||
@ -1117,7 +1117,7 @@ mod test {
|
|||||||
|
|
||||||
insta::assert_debug_snapshot!(query_tree, @r###"
|
insta::assert_debug_snapshot!(query_tree, @r###"
|
||||||
AND
|
AND
|
||||||
PHRASE ["hey", "friends"]
|
PHRASE [Some("hey"), Some("friends")]
|
||||||
Exact { word: "wooop" }
|
Exact { word: "wooop" }
|
||||||
"###);
|
"###);
|
||||||
}
|
}
|
||||||
@ -1154,8 +1154,8 @@ mod test {
|
|||||||
|
|
||||||
insta::assert_debug_snapshot!(query_tree, @r###"
|
insta::assert_debug_snapshot!(query_tree, @r###"
|
||||||
AND
|
AND
|
||||||
PHRASE ["hey", "friends"]
|
PHRASE [Some("hey"), Some("friends")]
|
||||||
PHRASE ["wooop", "wooop"]
|
PHRASE [Some("wooop"), Some("wooop")]
|
||||||
"###);
|
"###);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1203,7 +1203,7 @@ mod test {
|
|||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
insta::assert_debug_snapshot!(query_tree, @r###"
|
insta::assert_debug_snapshot!(query_tree, @r###"
|
||||||
PHRASE ["hey", "my"]
|
PHRASE [Some("hey"), Some("my")]
|
||||||
"###);
|
"###);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1268,7 +1268,7 @@ mod test {
|
|||||||
|
|
||||||
insta::assert_debug_snapshot!(query_tree, @r###"
|
insta::assert_debug_snapshot!(query_tree, @r###"
|
||||||
AND
|
AND
|
||||||
PHRASE ["hey", "my"]
|
PHRASE [Some("hey"), Some("my")]
|
||||||
Exact { word: "good" }
|
Exact { word: "good" }
|
||||||
"###);
|
"###);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user