code:     private void enableAllocation(String index) {
          client().admin().indices().prepareUpdateSettings(index).setSettings(ImmutableSettings.builder().put(
                  "index.routing.allocation.enable", "all"
          )).get();
      }
  