Extracting all metadata to compute the index