diff --git a/infos/src/main.rs b/infos/src/main.rs index 151e8c664..d5d1ad0af 100644 --- a/infos/src/main.rs +++ b/infos/src/main.rs @@ -7,7 +7,7 @@ use byte_unit::Byte; use heed::EnvOpenOptions; use milli::facet::FacetType; use milli::index::db_name::*; -use milli::{Index, TreeLevel}; +use milli::{FieldId, Index, TreeLevel}; use structopt::StructOpt; use Command::*; @@ -322,7 +322,7 @@ fn most_common_words(index: &Index, rtxn: &heed::RoTxn, limit: usize) -> anyhow: fn facet_values_iter<'txn, KC: 'txn, DC: 'txn>( rtxn: &'txn heed::RoTxn, db: heed::Database, - field_id: u8, + field_id: FieldId, ) -> heed::Result> + 'txn>> where KC: heed::BytesDecode<'txn>, @@ -330,7 +330,7 @@ where { let iter = db .remap_key_type::() - .prefix_iter(&rtxn, &[field_id])? + .prefix_iter(&rtxn, &field_id.to_be_bytes())? .remap_key_type::(); Ok(Box::new(iter))