Only reindex if elasticsearch is enabled