mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 18:45:06 +08:00
Update milli/src/search/criteria/attribute.rs
Co-authored-by: Clément Renault <clement@meilisearch.com>
This commit is contained in:
parent
7ad0214089
commit
2e49230ca2
@ -193,7 +193,7 @@ impl<'t, 'q> WordLevelIterator<'t, 'q> {
|
|||||||
) -> heed::Result<Option<Self>> {
|
) -> heed::Result<Option<Self>> {
|
||||||
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 level 0 for performances reasons.
|
||||||
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 =
|
||||||
|
Loading…
Reference in New Issue
Block a user