Added base workaround for elastic search indexing for mongo documents