architect-elasticsearch
v2.2.0
Published
Expose Elasticsearch.JS to architect framework
Downloads
12
Readme
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'];