Renamed IndexMetadata to -Structure to avoid confusion with document
metadata.