pub fn load_metadata(metadata_path: &Path) -> Result<IndexMetadata>
Load index metadata from a JSON file.