#测试分词器 GET /_analyze { "analyzer": "ik_max_word", "text": "泰裤辣,萌萌哒" } #创建索引库和映射 PUT /student { "mappings": { "properties": { "name":{ "type": "text" , "analyzer": "ik_smart" }, "info":{ "type": "text" ,"analyzer": "ik_smart" }, "age":{ "type": "integer" } } } } #新增数据 POST /student/_doc/1 { "name":"张飞", "info":"手持丈八蛇矛", "age":38 } #查询数据 GET /student/_doc/1 #修改数据 PUT /student/_doc/1 { "name":"关羽", "info":"手持青龙偃月刀", "age":40 } #删除数据 DELETE /student/_doc/1
标签:语句,info,doc,ik,elasticsearch,student,text,type From: https://www.cnblogs.com/Rover20230226/p/17495918.html