1
0
派生 0
镜像自地址 https://github.com/meilisearch/MeiliSearch 已同步 2025-07-15 13:58:36 +02:00

Merge pull request #276 from meilisearch/support-slash-tokenizer

Add support for back/slashes
这个提交存在于:
Clément Renault 2019-11-11 21:46:14 +01:00 提交者 GitHub
当前提交 1c4afe6d0f
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23

查看文件

@ -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,
}