removing unnecessary (and unneeded) document indexes