Implemented an elasticsearch mapping