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.
7.6 APIedit
This is currently the default API, but in upcoming versions that will change. We recommend setting the apiVersion
config param when you instantiate your client to make sure that the API does not change unexpectedly.