phase I: connect mongodb and elasticsearch. (100%)