@mmpro/ac-bootstrap-elasticsearch
Elasticsearch init for AC apps
Last updated a month ago by mmpro .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @mmpro/ac-bootstrap-elasticsearch 
SYNC missed versions from official npm registry.

AdmiralCloud ElasticSearch Connector

This helper initialitzes ElastistSearch instances and makes them available on a global variable

Usage

const esOptions = {
  servers: [
    { server: 'cluster', host: 'localhost', port: 9243, auth: 'username:password', apiVersion: '7.1', protocol: 'https' }
  ],
  indices: [
    { model: 'books', type: 'item', indexInfix: 'books', server: 'cluster', resetForTest: true, instance: 'books' }
  ]
}


TBC

Current Tags

  • 0.1.1                                ...           latest (a month ago)

2 Versions

  • 0.1.1                                ...           a month ago
  • 0.1.0                                ...           a month ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 11
Dependencies (4)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |