2b5f6cd80dd6e47890412da59f98dfd7a5637ba9
elasticsearch.js
Official low-level client for Elasticsearch.
Features
- One-to-one mapping with REST API and other language clients
- Generalized, pluggable architecture. See replacing core components
- Configurable, automatic discovery of cluster nodes
- Persistent, Keep-Alive connections
- Load balancing (with pluggable selection strategy) across all available nodes.
Node and the browser
elasticsearch.js works great in node, as well as modern browsers (many thanks to browserify!!).
- Node:
- Browsers (see browser builds):
Install in Node
npm install --save elasticsearch
Browser Builds
Download one of these browser-ready builds, or install them with bower
NOTE: The entire API is compatible with IE 10+, Chrome, Firefox, Safari, and Opera. IE 8 & 9 only support GET and POST requests cross-domain which is how the XhrConnection class makes it's requests.
- elasticsearch.js - dev
- uses the browser's native XMLHttpRequest object
- Node style callbacks or promises provided by when.js
bower install elasticsearch
- elasticsearch.angular.js - dev
- Uses Angular's $http service
- Returns promises using Angular's $q service (Adds an
abort()method)
bower install elasticsearch-angular
- elasticsearch.jquery.js - dev
- Uses jQuery's .ajax() method
- Returns jQuery promises (Adds an
abort()method)
bower install elasticsearch-jquery
Docs
Description
Languages
TypeScript
96.7%
JavaScript
2.6%
Shell
0.7%