es-index

1.0.1 • Public • Published

es-index

A simple approach for indexing data in elasticsearch that's also stored in another db.

Install

npm i --save es-index

Usage

Maybe you've got a model that emits create, update, and delete events.

You could do something like this:

var esindex = require('es-index')

var es = esindex({
  index: 'chat',
  type: 'messages'
})

messages.on('create', function (data) {
  es.create(data)
})

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i es-index

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • sethvincent