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 Build
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
jQuery Build
edit-
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' });
Was this helpful?
Thank you for your feedback.