elasticsearch练习--操作index(索引)
1、创建索引
请求resful:PUT
请求:http://119.91.127.xxx:9200/student1
请求方式:json
{ "settings": {}, "mappings": { "properties": { "name": { "type": "text", "index": true }, "sex": { "type": "text", "index": false }, "age": { "type": "long", "index": false } } } }
2、查看索引
请求resful:GET
请求:http://119.91.127.xxx:9200/student1
3、删除索引
请求resful:DELETE
请求:http://119.91.127.xxx:9200/student1

浙公网安备 33010602011771号