Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Commit

Permalink
Merge #611
Browse files Browse the repository at this point in the history
611: Upgrade charabia v0.6.0 r=curquiza a=ManyTheFish

# Pull Request

## What does this PR do?

- Update `log`
- Upgrade `charabia`

related to meilisearch/meilisearch#2686


Co-authored-by: ManyTheFish <many@meilisearch.com>
  • Loading branch information
bors[bot] and ManyTheFish authored Aug 23, 2022
2 parents e314423 + a5b9a35 commit a79ff8a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion http-ui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 4 additions & 2 deletions http-ui/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion milli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit a79ff8a

Please sign in to comment.