pub fn export_index() -> Result<()>
Prints out the entire index as JSON
This is currently here for debugging purposes, but may serve as part of a backup/restore feature in the future.