add indices to ES objects