mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Change the way we filter the documents
This commit is contained in:
parent
681711fced
commit
40dab80dfa
3 changed files with 19 additions and 12 deletions
|
@ -245,8 +245,7 @@ fn multiword_rewrite_matches(
|
|||
if !found {
|
||||
// if we find a corresponding padding for the
|
||||
// first time we must push preceding paddings
|
||||
for (i, query_index) in replacement.clone().enumerate().take(i)
|
||||
{
|
||||
for (i, query_index) in replacement.clone().enumerate().take(i) {
|
||||
let word_index = match_.word_index + padding as u16 + (i + 1) as u16;
|
||||
let match_ = SimpleMatch { query_index, word_index, ..*match_ };
|
||||
padded_matches.push(match_);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue