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)
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
setHosts(hostConfigs)
editUse this method to dynamically change the list or hosts the client uses.
args
edit
|
|