hello

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

posted @ 2022-02-14 17:02  八股文研究生  阅读(80)  评论(0)    收藏  举报
my name is zhangsan