GET _search
{
"query": {
"match_all": {}
}
}
#最大分词器
POST _analyze
{
"analyzer": "ik_max_word",
"text": ["符志勇是湖南人"]
}
#最小分词器
POST _analyze
{
"analyzer": "ik_smart",
"text": ["符志勇是湖南人"]
}
#创建索引库
PUT /blog1
#查看索引库
GET /blog1
#删除索引库
DELETE /blog1
#创建索引映射
PUT /blog1/_mapping/goods?include_type_name=true
{
"properties":{
"title":{
"type":"text",
"analyzer":"ik_max_word"
},
"subtitle":{
"type":"text",
"analyzer":"ik_max_word"
},
"images":{
"type":"keyword",
"index":"false"
},
"price":{
"type":"float"
}
}
}
#查询索引映射
GET /blog1/_mapping/goods?include_type_name=true
标签:blog1,text,kibana,索引,ik,analyzer,控制台,type
From: https://blog.51cto.com/u_16111399/7424968