[英]elasticsearch: resyncing the indexes from mongodb
I have following situation need some help:我有以下情况需要帮助:
>mongo-connector -m 127.0.0.1:27017 -t 127.0.0.1:9200 -d elastic2_doc_manager
And it worked perfectly all the data from mongodb synced to elasticsearch nice and sweet.>mongo-connector -m 127.0.0.1:27017 -t 127.0.0.1:9200 -d elastic2_doc_manager
它完美地将 mongodb 的所有数据同步到>mongo-connector -m 127.0.0.1:27017 -t 127.0.0.1:9200 -d elastic2_doc_manager
. Problem: As i deleted all the indices from my elasticsearch.问题:因为我从我的 elasticsearch 中删除了所有索引。 when i re run this command
>mongo-connector -m 127.0.0.1:27017 -t 127.0.0.1:9200 -d elastic2_doc_manager
it doesnt sync data from mongodb to elasticsearch.当我重新运行此命令时
>mongo-connector -m 127.0.0.1:27017 -t 127.0.0.1:9200 -d elastic2_doc_manager
它不会将数据从 mongodb 同步到>mongo-connector -m 127.0.0.1:27017 -t 127.0.0.1:9200 -d elastic2_doc_manager
。 I also tried mongo-connector -m localhost:27017 -t localhost:9200 -d elastic2_doc_manager -n {db}.{collection_name} -g {djangodb}.{spiderCollection1}
But it doesnt work.我也试过
mongo-connector -m localhost:27017 -t localhost:9200 -d elastic2_doc_manager -n {db}.{collection_name} -g {djangodb}.{spiderCollection1}
但它不起作用。
What can i do to retrigger the sync of collections/documents in elasticsearch from mongodb?我该怎么做才能从 mongodb 重新触发 elasticsearch 中集合/文档的同步? Or how can i perform re-syncing of data from mongodb to elasticsearch
或者如何将数据从 mongodb 重新同步到 elasticsearch
no versions of db or elasticsearch has been changed/modified.没有更改/修改 db 或 elasticsearch 版本。
Will appreciate your help.将感谢您的帮助。
Thanks,谢谢,
Worked, by recreating the db in the mongodb again.通过再次在 mongodb 中重新创建数据库来工作。 But if any one knows anyother alternative workaround, please feelfree to share without having to create the db again in mongodb.
但是,如果有人知道任何其他替代解决方法,请随时分享而无需在 mongodb 中再次创建数据库。 thanks,
谢谢,
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.