yidt
yidt
先 npm install,然后再 node app.js ‘chokidar‘ 这个找不到多半是因为没有安装依赖包 如果不了解npm,请搜索npm相关使用方法 希望能帮助到你
I think you should use 'Foreach Processor' and 'JSON Processor' to create a pipeline. Like this: PUT _ingest/pipeline/yourpip { "description" : "test", "processors" : [ { "foreach": { "field": "yourArrayField",...
下一个版本可以考虑加上
Delete two JSON files (mybooks.json,myusers.json) under folder “crawlerData/”.They're just for testing. You can create your own profile based on the “README”
I guess your configuration file doesn't have an 'elasticsearch node' 
可以创建索引,也可以不创建索引 如果不创建索引,会根据你要同步的MongoDB数据节点,自动生成索引以及索引里面的mapping 如果创建索引,需要事先定义好结构,然后再同步 你先确定你的配置文件是否正确,MongoDB里面是否有数据,elasticsearch是否成功运行
补充一句,如果是要同步附件,需要事先在elastic里定义好pipeline,然后在配置文件里面配置好定义,最后启动同步工具方可,具体参考readme里面的说明
请仔细比较我提供的两个例子是不同的,只是为了证明可以通过pipeline来同步附件  下面是定义pipeline 
现在的问题是你的MongoDB里面没有附件信息,fs.files和fs.chuncks里面没有数据 https://github.com/zhr85210078/node-mongodb-es-connector/blob/master/test/test.js 关于如何把一本书存到MongoDB,这个就是例子,注释的那些
必须是fs.files和fs.chuncks...... https://blog.csdn.net/yangyatou1991/article/details/71330923