Get the posting list for a dimension.
(&self, dim: u32)
| 112 | |
| 113 | /// Get the posting list for a dimension. |
| 114 | pub fn get_postings(&self, dim: u32) -> Option<&[(u32, f32)]> { |
| 115 | self.postings.get(&dim).map(|v| v.as_slice()) |
| 116 | } |
| 117 | |
| 118 | /// Resolve an internal doc ID to the string document ID. |
| 119 | pub fn resolve_doc_id(&self, internal_id: u32) -> Option<&str> { |