es通过Restful请求操作索引库,文档 请求内容用DSL 语句表示
创建索引库和mapping的DSL语法如下:

#创建索引库PUT /heima{"mappings": {"properties": {"info": {"type": "text","analyzer": "ik_smart"},"emil": {"type": "keyword","index": false},"name": {"type": "object","properties": {"firstName":{"type":"keyword","index":false},"lastName":{"type":"keyword","index":false}}}}}}}
