From d784d87880611b7da900f9a599112c7784c53c41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Fri, 28 Aug 2020 14:39:25 +0200 Subject: [PATCH] Remove the prefix LMDB databases --- src/lib.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index c45638c6a..ffc0d289b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -42,11 +42,9 @@ pub struct Index { pub main: PolyDatabase, /// A word and all the positions where it appears in the whole dataset. pub word_positions: Database, - pub prefix_word_positions: Database, - /// Maps a word at a position (u32) and all the documents ids where it appears. + /// Maps a word at a position (u32) and all the documents ids where the given word appears. pub word_position_docids: Database, - pub prefix_word_position_docids: Database, - /// Maps a word and an attribute (u32) to all the documents ids that it appears in. + /// Maps a word and an attribute (u32) to all the documents ids where the given word appears. pub word_attribute_docids: Database, /// The MTBL store that contains the documents content. documents: omtbl::Reader>, @@ -66,9 +64,7 @@ impl Index { path: path.as_ref().to_path_buf(), main: env.create_poly_database(None)?, word_positions: env.create_database(Some("word-positions"))?, - prefix_word_positions: env.create_database(Some("prefix-word-positions"))?, word_position_docids: env.create_database(Some("word-position-docids"))?, - prefix_word_position_docids: env.create_database(Some("prefix-word-position-docids"))?, word_attribute_docids: env.create_database(Some("word-attribute-docids"))?, documents: omtbl::Reader::new(TransitiveArc(Arc::new(documents)))?, })