打开开机自检MA
添加索引put http://192.168.203.13233609200/school
{ ' settings ' : { ' number _ of _ shards ' :3,' number_of_replicas':1}, '映射' : { ' student ' : } ' properties ' : { ' stuname ' : { ' type ' : ' keyword ', ' age':} 'resume':' tuition':' type':' analyzer':' ik_smart、' tuition ' 3: ' hobbies ' : { ' type ' : ' keyword ' },' address ' : { ' properties ' 3360 } province ' : { ' type ' : }
创建索引之前
单击send将发送索引请求,其中包含以下内容
{ 'acknowledged': true,' shards_acknowledged': true,' index': 'school'}
这意味着成功,并添加一个名为school的索引
添加数据post http://192.168.203.13233609200/school/student/1,然后按send键发送请求
将student类型添加到索引中,然后在该类下添加d为1的数据
{'stuName': '魔幻之星',' age':18,' resume': '我喜欢冒险,从小到大,读过很多人。' tutition':26800.00,' Hobbo
可以查询添加的数据
删除索引下的所有数据delete http://192.168.203.13233609200/school/student/1删除索引下的数据
Q:postman删除某一索引下dataDt为20190930的数据
url:地址: 9200/索引(_index ) /类型) _type )/_delete_by_query
请求方法:开机自检
请求体: {
' query':{
' match':{
' dataDt':'20190930 '
}
}
}
更改数据post http://192.168.203.13233609200/school/student/1/_ update
{ ' doc ' : { ' tu tition ' :16666.00 }
具体操作与上述添加类似,只是将请求方式替换为开机自检
从结果来看修正成功了
查询根据ID查询get http://192.168.203.13233609200/school/student/1