mirror of
https://github.com/typesense/typesense.git
synced 2025-05-18 12:42:50 +08:00
parent
bef7dc233e
commit
d60098a6ab
@ -3390,7 +3390,10 @@ void Collection::process_tokens(std::vector<std::string>& tokens, std::vector<st
|
||||
bool end_of_phrase = false;
|
||||
|
||||
if(token == "-" && !symbols_to_index_has_minus) {
|
||||
exclude_operator_prior = true;
|
||||
if(locale != "en" && !locale.empty()) {
|
||||
// non-English locale parsing splits "-" as individual tokens
|
||||
exclude_operator_prior = true;
|
||||
}
|
||||
continue;
|
||||
} else if(token[0] == '-' && !symbols_to_index_has_minus) {
|
||||
exclude_operator_prior = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user