(path: PathBuf)
| 148 | |
| 149 | impl InvertedIndex { |
| 150 | pub fn new(path: PathBuf) -> Self { |
| 151 | let tree = Tree::new(path.clone()).expect("Failed to create tree"); |
| 152 | InvertedIndex { path, tree } |
| 153 | } |
| 154 | |
| 155 | pub fn insert(&mut self, key: KVPair, value: InvertedIndexItem, skip_compression: bool) { |
| 156 | // println!("Inserting INTO INVERTED INDEX: {:?}", key); |