I am new to Ember and Node, and I would like to use Elasticsearch with Ember.
I'm using the npm elasticsearch package.
From what I gather, I should inject ES as a service, but I'm not sure where to include the ES initialization code and register the client with the Ember app.
var elasticsearch = require('elasticsearch');
var client = new elasticsearch.Client({
host: 'localhost:9200',
log: 'trace'
});`
All I've got right now is ember g service elasticsearch
I appreciate the help for a noob!
Aucun commentaire:
Enregistrer un commentaire