Elasticsearch之增加和删除索引
增加索引
利用postMan工具发送restfulAPI添加索引库 请求方式为put代表添加
创建索引index时映射mapping
请求URL:
使用put发送http://localhost:9200/blog1
{
"mappings": {
"article": {
"properties": {
"id": {
"type": "long",
"store": true,
"index":"not_analyzed"
},
"title": {
"type": "text",
"store": true,
"index":"analyzed",
"analyzer":"standard"
},
"content": {
"type": "text",
"store": true,
"index":"analyzed",
"analyzer":"standard"
}
}
}
}
}效果:


创建索引index后映射mapping
先使用 put 请求发送 http://localhost:9200/blog2


然后使用 post 请求发送http://localhost:9200/blog2/hello/_mapping

删除索引
使用DELET请求发送 http://localhost:9200/blo



相关推荐
明瞳 2020-08-19
另外一部分,则需要先做聚类、分类处理,将聚合出的分类结果存入ES集群的聚类索引中。数据处理层的聚合结果存入ES中的指定索引,同时将每个聚合主题相关的数据存入每个document下面的某个field下。
sifeimeng 2020-08-03
心丨悦 2020-08-03
李玉志 2020-07-26
tigercn 2020-07-19
李玉志 2020-07-04
mengyue 2020-06-27
newbornzhao 2020-09-14
做对一件事很重要 2020-09-07
renjinlong 2020-09-03
李玉志 2020-08-19
mengyue 2020-08-07
molong0 2020-08-06
AFei00 2020-08-03
molong0 2020-08-03
wenwentana 2020-08-03
YYDU 2020-08-03