Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Commit

Permalink
Update milli/src/search/criteria/attribute.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Clément Renault <clement@meilisearch.com>
  • Loading branch information
ManyTheFish and Kerollmops authored Sep 29, 2021
1 parent 7ad0214 commit 2e49230
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion milli/src/search/criteria/attribute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ impl<'t, 'q> WordLevelIterator<'t, 'q> {
) -> heed::Result<Option<Self>> {
match ctx.word_position_last_level(&word, in_prefix_cache)? {
Some(_) => {
// HOTFIX Meilisearch#1707: it is better to only iterate over the level 0.
// HOTFIX Meilisearch#1707: it is better to only iterate over level 0 for performances reasons.
let level = TreeLevel::min_value();
let interval_size = LEVEL_EXPONENTIATION_BASE.pow(Into::<u8>::into(level) as u32);
let inner =
Expand Down

0 comments on commit 2e49230

Please sign in to comment.