Refactored MongoAdapter to be more inline with EsAdapter