mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 02:27:40 +08:00
Merge pull request #276 from meilisearch/support-slash-tokenizer
Add support for back/slashes
This commit is contained in:
commit
1c4afe6d0f
@ -47,7 +47,7 @@ fn classify_separator(c: char) -> Option<SeparatorCategory> {
|
||||
c if c.is_whitespace() => Some(Soft), // whitespaces
|
||||
c if deunicode_char(c) == Some("'") => Some(Soft), // quotes
|
||||
c if deunicode_char(c) == Some("\"") => Some(Soft), // double quotes
|
||||
'-' | '_' | '\'' | ':' => Some(Soft),
|
||||
'-' | '_' | '\'' | ':' | '/' | '\\' => Some(Soft),
|
||||
'.' | ';' | ',' | '!' | '?' | '(' | ')' => Some(Hard),
|
||||
_ => None,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user