mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-27 04:25:06 +08: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
|
# logging
|
||||||
fst = "0.4.7"
|
fst = "0.4.7"
|
||||||
log = "0.4.14"
|
log = "0.4.17"
|
||||||
stderrlog = "0.5.1"
|
stderrlog = "0.5.1"
|
||||||
|
|
||||||
# Temporary fix for bitvec, remove once fixed. (https://github.com/bitvecto-rs/bitvec/issues/105)
|
# 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(),
|
None => fields_ids_map.iter().map(|(_, name)| name).map(String::from).collect(),
|
||||||
};
|
};
|
||||||
|
|
||||||
let mut matcher_builder =
|
let mut matcher_builder = MatcherBuilder::new(
|
||||||
MatcherBuilder::new(matching_words, TokenizerBuilder::default().build());
|
matching_words,
|
||||||
|
TokenizerBuilder::default().create_char_map(true).build(),
|
||||||
|
);
|
||||||
matcher_builder.highlight_prefix("<mark>".to_string());
|
matcher_builder.highlight_prefix("<mark>".to_string());
|
||||||
matcher_builder.highlight_suffix("</mark>".to_string());
|
matcher_builder.highlight_suffix("</mark>".to_string());
|
||||||
let highlighter = Highlighter::new(matcher_builder);
|
let highlighter = Highlighter::new(matcher_builder);
|
||||||
|
@ -9,7 +9,7 @@ bimap = { version = "0.6.2", features = ["serde"] }
|
|||||||
bincode = "1.3.3"
|
bincode = "1.3.3"
|
||||||
bstr = "0.2.17"
|
bstr = "0.2.17"
|
||||||
byteorder = "1.4.3"
|
byteorder = "1.4.3"
|
||||||
charabia = "0.5.1"
|
charabia = "0.6.0"
|
||||||
concat-arrays = "0.1.2"
|
concat-arrays = "0.1.2"
|
||||||
crossbeam-channel = "0.5.2"
|
crossbeam-channel = "0.5.2"
|
||||||
either = "1.6.1"
|
either = "1.6.1"
|
||||||
|
Loading…
Reference in New Issue
Block a user