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.
jQuery Buildedit
-
Uses jQuery’s
.ajax()
functionality - Returns jQuery "promises"
-
Registers the module at
jQuery.es
Create a client with the jQuery build.
var client = new $.es.Client({ hosts: 'localhost:9200' });