A module or generating a reverse index from a collection of objects