mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Merge remote-tracking branch 'origin/main' into search-refactor
This commit is contained in:
commit
a81165f0d8
282 changed files with 4457 additions and 587 deletions
|
@ -24,6 +24,9 @@ pub fn located_query_terms_from_string(
|
|||
|
||||
let mut peekable = query.take(super::limits::MAX_TOKEN_COUNT).peekable();
|
||||
while let Some(token) = peekable.next() {
|
||||
if token.lemma().is_empty() {
|
||||
continue;
|
||||
}
|
||||
// early return if word limit is exceeded
|
||||
if located_terms.len() >= parts_limit {
|
||||
return Ok(located_terms);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue