Add hidden document ids so that batch update can succeed