From a72d2f66cd2cfe7e41058ded7b84274e09bdf353 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9mentine=20Urquizar?= Date: Wed, 21 Apr 2021 19:14:55 +0200 Subject: [PATCH] use tags instead of tags for highlighting --- meilisearch-http/src/index/search.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/meilisearch-http/src/index/search.rs b/meilisearch-http/src/index/search.rs index 63e8b7cd9..1cccfcd58 100644 --- a/meilisearch-http/src/index/search.rs +++ b/meilisearch-http/src/index/search.rs @@ -158,7 +158,7 @@ impl Index { let stop_words = fst::Set::default(); let highlighter = Highlighter::new( &stop_words, - (String::from(""), String::from("")), + (String::from(""), String::from("")), ); for (_id, obkv) in self.documents(&rtxn, documents_ids)? { @@ -386,7 +386,7 @@ mod test { let stop_words = fst::Set::default(); let highlighter = Highlighter::new( &stop_words, - (String::from(""), String::from("")), + (String::from(""), String::from("")), ); let mut fields = FieldsIdsMap::new(); @@ -421,7 +421,7 @@ mod test { let stop_words = fst::Set::default(); let highlighter = Highlighter::new( &stop_words, - (String::from(""), String::from("")), + (String::from(""), String::from("")), ); let mut fields = FieldsIdsMap::new(); @@ -456,7 +456,7 @@ mod test { let stop_words = fst::Set::default(); let highlighter = Highlighter::new( &stop_words, - (String::from(""), String::from("")), + (String::from(""), String::from("")), ); let mut fields = FieldsIdsMap::new(); @@ -483,6 +483,6 @@ mod test { &to_highlight_ids ).unwrap(); - assert_eq!(value["test"], "hello"); + assert_eq!(value["test"], "hello"); } }