ember-elasticsearch

0.1.0 • Public • Published

Build Status npm version Ember Observer Score PRs Welcome FastBoot Ready

ember-elasticsearch

This addon provides a FastBoot compatible wrapper around the elasticsearch package.

Installation

  • ember install ember-elasticsearch
  • configure your elasticsearch host in config/environment.js:
...
elasticsearch: {
    host: 'YOUR_HOST_HERE'
}
...

Usage

You can now inject the elasticsearch service in your routes and use the search client like so:

elasticsearch: injectService(),
model() {
  return get(this, 'elasticsearch.client').search({
    q: 'foo'
  }).then((data) => {
    return data.hits.hits;
  });
}

Readme

Keywords

Package Sidebar

Install

npm i ember-elasticsearch

Weekly Downloads

2

Version

0.1.0

License

MIT

Last publish

Collaborators

  • davidpett