Skip to content

M1n007/mongo-to-elastic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mongo To Elastic

Example Error Trace

Configuration

  • change const url = '' to your mongodb connection url
  • change host: inside elasticsearch.client to your elasticsearch host

Installation

requires Node.js v8+ to run.

$ cd mongo-to-elastic
$ npm install 
$ node index.js
Example progress : 
Progress 10 from 13
Getting document from collection :  tags
Total document from collection :  22
Try inserting document tags to elasticsearch.