Slightly WIP integration of per-item indexing, currently implemented for repositories