Ensure that Index methods are not bypassed by Meilisearch

This commit is contained in:
ManyTheFish 2022-06-13 16:39:17 +02:00
parent f1d848bb9a
commit 0d1d354052
3 changed files with 21 additions and 26 deletions

View file

@ -82,10 +82,10 @@ pub mod db_name {
#[derive(Clone)]
pub struct Index {
/// The LMDB environment which this index is associated with.
pub env: heed::Env,
pub(crate) env: heed::Env,
/// Contains many different types (e.g. the fields ids map).
pub main: PolyDatabase,
pub(crate) main: PolyDatabase,
/// A word and all the documents ids containing the word.
pub word_docids: Database<Str, RoaringBitmapCodec>,
@ -125,7 +125,7 @@ pub struct Index {
pub field_id_docid_facet_strings: Database<FieldDocIdFacetStringCodec, Str>,
/// Maps the document id to the document as an obkv store.
pub documents: Database<OwnedType<BEU32>, ObkvCodec>,
pub(crate) documents: Database<OwnedType<BEU32>, ObkvCodec>,
}
impl Index {