mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02: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
3 changed files with 6 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue