Miss any of our Open RFC calls?Watch the recordings here! »

architect-elasticsearch

2.1.0 • Public • Published

architect-elasticsearch

Expose elasticsearch as architect plugin.

Installation

npm install --save architect-elasticsearch

Usage

Boot Architect :

var path = require('path');
var architect = require("architect");
 
var config = architect.loadConfig(path.join(__dirname, "config.js"));
 
architect.createApp(config, function (err, app) {
    if (err) {
        throw err;
    }
    console.log("app ready");
});

Configure Architect with config.js to access the local Elasticsearch service:

module.exports = [{
    packagePath: "architect-elasticsearch",
    settings: {
        default: {
            hosts: ['localhost:9200']
        }
    }
}, './services'];

Install

npm i architect-elasticsearch

DownloadsWeekly Downloads

3

Version

2.1.0

License

Apache License V2.0

Unpacked Size

14.2 kB

Total Files

5

Last publish

Collaborators

  • avatar