How to do custom mapping using mongo connector with elasticsearch

前端 未结 1 1161
灰色年华
灰色年华 2021-01-07 02:56

I wanna connect mongodb and elasticsearch. I used mongo connector to connect them. I followed instruction from below link

相关标签:
1条回答
  • 2021-01-07 03:16

    Well I got an answer to my question, while starting mongo connector we can specify collection name and the list of fields we are interested in. Please check below command ==>

    $ mongo-connector -m localhost:27017  -t localhost:9200 -d elastic_doc_manager --oplog-ts oplogstatus.txt --namespace-set hotels.restaurants --fields address,grades,name
    
    0 讨论(0)
提交回复
热议问题