Closed warm200 closed 9 years ago
when deleting document on elasticsearch
There is master-slave replication. Mongo > ES. If you delete something in ES, it will be not deleted in Mongo.
thanks ewgRa, so in pratice, like your said, ES is like a master and mongodb like a slave? Am i right? and it's supposed to delete data in mongo side no just in ES side?
vice versa
ES is a slave, Mongo is a master.
ES just read Mongo oplog.
Oh, sorry I was supposed to say mongdb is a master, so ES can read what's updated in the oplog. got it, thank you ewgRa,
you welcome. please close issue.
I am looking for the idea, that I use the delete command on my server backend, which is deleting document from elasticsearch, at first it all functions well, but when I checked the mongodb, they are all there, river is not sync when deleting document on elasticsearch,Further more, when I directly delete stuff on mongodb, it did work on elasticsearch, which mean it just function well one way .I have no idea which part is wrong. I implement the relpset on one instance "rs0" ,does it matter?