Elasticsearch mapping and to_json changed