mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-22 18:17:39 +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 c.is_whitespace() => Some(Soft), // whitespaces
|
||||||
c if deunicode_char(c) == Some("'") => Some(Soft), // quotes
|
c if deunicode_char(c) == Some("'") => Some(Soft), // quotes
|
||||||
c if deunicode_char(c) == Some("\"") => Some(Soft), // double quotes
|
c if deunicode_char(c) == Some("\"") => Some(Soft), // double quotes
|
||||||
'-' | '_' | '\'' | ':' => Some(Soft),
|
'-' | '_' | '\'' | ':' | '/' | '\\' => Some(Soft),
|
||||||
'.' | ';' | ',' | '!' | '?' | '(' | ')' => Some(Hard),
|
'.' | ';' | ',' | '!' | '?' | '(' | ')' => Some(Hard),
|
||||||
_ => None,
|
_ => None,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user