private void updateConfig() {
    ServiceCfgDto dto = ServiceCfgDto.create();

    dto.setName("search");

    ESCfgDto config = ESCfgDto.create();
    config.setEnabled(isEnabled);
    config.setClusterName(getView().getClusterName());
    config.setIndexName(getView().getIndexName());
    config.setDataNode(dataNode);
    config.setShards(getView().getNbShards().intValue());
    config.setReplicas(getView().getNbReplicas().intValue());
    config.setSettings(getView().getSettings());

    dto.setExtension("Opal.ESCfgDto.params", config);

    putESCfg(dto);
  }