Update milli/src/search/criteria/attribute.rs

Co-authored-by: Clément Renault <clement@meilisearch.com>
This commit is contained in:
Many 2021-09-29 14:49:41 +02:00 committed by GitHub
parent 1df5b8712b
commit 7ad0214089
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -194,7 +194,6 @@ impl<'t, 'q> WordLevelIterator<'t, 'q> {
match ctx.word_position_last_level(&word, in_prefix_cache)? { match ctx.word_position_last_level(&word, in_prefix_cache)? {
Some(_) => { Some(_) => {
// HOTFIX Meilisearch#1707: it is better to only iterate over the level 0. // HOTFIX Meilisearch#1707: it is better to only iterate over the level 0.
// A cleaner fix will be implemented soon.
let level = TreeLevel::min_value(); let level = TreeLevel::min_value();
let interval_size = LEVEL_EXPONENTIATION_BASE.pow(Into::<u8>::into(level) as u32); let interval_size = LEVEL_EXPONENTIATION_BASE.pow(Into::<u8>::into(level) as u32);
let inner = let inner =