entities similar to #1113844 Migration script function to reindex a given entity