From 59e41d98e303205fbb38b467d947c853d15f9ca8 Mon Sep 17 00:00:00 2001 From: ad hoc Date: Mon, 4 Apr 2022 21:17:06 +0200 Subject: [PATCH] add comments to integration test --- milli/tests/search/typo_tolerance.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/milli/tests/search/typo_tolerance.rs b/milli/tests/search/typo_tolerance.rs index 92d57c9b9..35cc4b4c2 100644 --- a/milli/tests/search/typo_tolerance.rs +++ b/milli/tests/search/typo_tolerance.rs @@ -181,6 +181,7 @@ fn test_disable_typo_on_attribute() { let txn = index.read_txn().unwrap(); let mut search = Search::new(&txn, &index); + // typo in `antebel(l)um` search.query("antebelum"); search.limit(10); search.authorize_typos(true); @@ -194,10 +195,10 @@ fn test_disable_typo_on_attribute() { let config = IndexerConfig::default(); let mut builder = Settings::new(&mut txn, &index, &config); + // disable typos on `description` builder.set_exact_attributes(vec!["description".to_string()].into_iter().collect()); builder.execute(|_| ()).unwrap(); - // typo is now supported for 4 letters words let mut search = Search::new(&txn, &index); search.query("antebelum"); search.limit(10);