File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed
Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -987,14 +987,6 @@ typo_tolerance_guide_2: |-
987987 disable_on_words: None,
988988 min_word_size_for_typos: None,
989989 };
990-
991- typo_tolerance_guide_5 : |-
992- // Deactivate typo tolerance on numbers and other high entropy words
993- let typo_tolerance = TypoToleranceSettings {
994- disable_on_numbers: Some(true),
995- ..Default::default()
996- };
997-
998990 let task: TaskInfo = client
999991 .index("movies")
1000992 .set_typo_tolerance(&typo_tolerance)
@@ -1029,6 +1021,18 @@ typo_tolerance_guide_4: |-
10291021 min_word_size_for_typos: Some(min_word_size_for_typos),
10301022 };
10311023
1024+ let task: TaskInfo = client
1025+ .index("movies")
1026+ .set_typo_tolerance(&typo_tolerance)
1027+ .await
1028+ .unwrap();
1029+ typo_tolerance_guide_5 : |-
1030+ // Deactivate typo tolerance on numbers and other high entropy words
1031+ let typo_tolerance = TypoToleranceSettings {
1032+ disable_on_numbers: Some(true),
1033+ ..Default::default()
1034+ };
1035+
10321036 let task: TaskInfo = client
10331037 .index("movies")
10341038 .set_typo_tolerance(&typo_tolerance)
You can’t perform that action at this time.
0 commit comments