To optimize bulk insertions of a large amount of data into ElasticSearch indexes, I'm adding functionality to our driver to suspend index refreshes for a period of time. I've done this using admin indices update settings to set index.refresh_interval
to -1 and the back to 1 second. However, I can't seem to find a way to get index.refresh_interval
back from ElasticSearch, which means I can't get it to restore it later, can't do consistency checks against the index, and can't really test that what I've done has actually worked.
I've tried:
GET http://localhost:9200/[index_name]/_settings/
..but the result had only contained three settings, which seemed too few. Perhaps this REST call can take additional parameters to get more/different settings?