Functions for extracting index metadata

Sure, done.