0
点赞
收藏
分享

微信扫一扫

kibana控制台


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








举报

相关推荐

0 条评论