mongoose-elastic:将猫鼬模型自动索引到ElasticSearch中

时间:2021-05-08 20:55:28
【文件属性】:
文件名称:mongoose-elastic:将猫鼬模型自动索引到ElasticSearch中
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-08 20:55:28
elasticsearch mongodb mongoose node-js elastic 猫鼬弹性 猫鼬弹性是插件,可以自动索引你的模型到 。 用法 安装软件包。 npm i @selego/mongoose-elastic 设置您的猫鼬模型以使用该插件。 const { Client } = require ( "@elastic/elasticsearch" ) ; const mongoose = require ( "mongoose" ) ; const mongooseElastic = require ( "@selego/mongoose-elastic" ) ; const client = new Client ( { node : "http://localhost:9200" } ) ; const User = new mongoose . Schema ( { name : String , email : String , cit
【文件预览】:
mongoose-elastic-main
----src()
--------index.test.js(780B)
--------index.js(8KB)
----jest.config.js(49B)
----README.md(2KB)
----.gitignore(96B)
----package.json(672B)

网友评论