Updated the mapping to use elasticsearch-php api