mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
fix: Lowercase the query
This commit is contained in:
parent
a8d2fbd3aa
commit
e43dce7274
1 changed files with 3 additions and 2 deletions
|
@ -61,8 +61,9 @@ where M: AsRef<Metadata>,
|
|||
D: AsRef<DB>,
|
||||
{
|
||||
let mut automatons = Vec::new();
|
||||
for query in query.split_whitespace().filter(|q| !common_words.contains(*q)) {
|
||||
let lev = automaton::build(query);
|
||||
for query in query.split_whitespace().map(str::to_lowercase) {
|
||||
if common_words.contains(&query) { continue }
|
||||
let lev = automaton::build(&query);
|
||||
automatons.push(lev);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue