mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-27 15:10:05 +01:00
Merge #611
611: Upgrade charabia v0.6.0 r=curquiza a=ManyTheFish # Pull Request ## What does this PR do? - Update `log` - Upgrade `charabia` related to https://github.com/meilisearch/meilisearch/issues/2686 Co-authored-by: ManyTheFish <many@meilisearch.com>
This commit is contained in:
commit
a79ff8a1a9
@ -33,7 +33,7 @@ warp = "0.3.2"
|
||||
|
||||
# logging
|
||||
fst = "0.4.7"
|
||||
log = "0.4.14"
|
||||
log = "0.4.17"
|
||||
stderrlog = "0.5.1"
|
||||
|
||||
# Temporary fix for bitvec, remove once fixed. (https://github.com/bitvecto-rs/bitvec/issues/105)
|
||||
|
@ -784,8 +784,10 @@ async fn main() -> anyhow::Result<()> {
|
||||
None => fields_ids_map.iter().map(|(_, name)| name).map(String::from).collect(),
|
||||
};
|
||||
|
||||
let mut matcher_builder =
|
||||
MatcherBuilder::new(matching_words, TokenizerBuilder::default().build());
|
||||
let mut matcher_builder = MatcherBuilder::new(
|
||||
matching_words,
|
||||
TokenizerBuilder::default().create_char_map(true).build(),
|
||||
);
|
||||
matcher_builder.highlight_prefix("<mark>".to_string());
|
||||
matcher_builder.highlight_suffix("</mark>".to_string());
|
||||
let highlighter = Highlighter::new(matcher_builder);
|
||||
|
@ -9,7 +9,7 @@ bimap = { version = "0.6.2", features = ["serde"] }
|
||||
bincode = "1.3.3"
|
||||
bstr = "0.2.17"
|
||||
byteorder = "1.4.3"
|
||||
charabia = "0.5.1"
|
||||
charabia = "0.6.0"
|
||||
concat-arrays = "0.1.2"
|
||||
crossbeam-channel = "0.5.2"
|
||||
either = "1.6.1"
|
||||
|
Loading…
x
Reference in New Issue
Block a user