mio-elasticsearch
v0.4.0
Published
Elasticsearch storage layer for Mio.
Downloads
3
Readme
mio-elasticsearch
Elasticsearch storage layer for Mio.
Installation
Install using npm:
npm install --save mio-elasticsearch
Usage
User.use(require('mio-elasticsearch')({
host: 'asdf1234.qbox.io',
username: 'username',
password: 'password',
port: 443
}));
Options:
host
elasticsearch cluster host (required)username
username for basic HTTP auth (required)password
password for basic HTTP auth (required)port
HTTP port (default: 443)secure
Use HTTPS (default: true if port is 443)index
Elasticsearch index (required)type
Elasticsearch document type (required)
Tests
npm test
Coverage
npm run-script coverage