Collections plugin: add index to global metadata