In the new elasticsearch-java api client, is it possible to update a specific index setting by a key-value pair?
Say, you have these keys:
static final String NUMBER_OF_REPLICAS_KEY = "index.number_of_replicas";
static final String REFRESH_INTERVAL_KEY = "index.refresh_interval";
Then you create something like
key = REFRESH_INTERVAL_KEY
value = 1200
It seems not possible with the below code
PutIndicesSettingsRequest request = PutIndicesSettingsRequest.of(b -> b.index(indexName));
final Map<String, Object> map = new HashMap<>();
map.put(key, value);
Then call
client.indices().putSettings(...)
Is it possible?