IMPORTANT: elasticsearch.js has been replaced by the new Elasticsearch JavaScript client. We strongly advise you to migrate to the new client. To learn more, see the migration guide.
setHosts(hostConfigs)
editsetHosts(hostConfigs)
editUse this method to dynamically change the list or hosts the client uses.
args
edit
|
|