mongoose-es-index-update
v1.0.7
Published
update elastic search index within mongoose hooks
Downloads
12
Maintainers
Readme
mongoose-es-index-update
update elastic search index after save , updateOne mongoose hooks
Install
$ npm install mongoose-es-index-update
Usage
const mongooseEsUpdate = require('mongoose-es-index-update');
//..schema ,model
//plugin options required
const options={
index:"myindex",
host:"localhost:9200" //elastisearch
}
someSchema.plugin(mongooseEsUpdate,{otions)
mymodel.save() // save your model
Options
host
Type: string
elasticsearch node host url.
index
Type: string
elasticsearch index
License
MIT © Abdelhak Akermi