码迷,mamicode.com
首页 > 其他好文 > 详细

kibana 操作

时间:2019-05-20 22:54:46      阅读:251      评论:0      收藏:0      [点我收藏+]

标签:lis   creat   let   source   中文   update   har   number   test   

插入时不指明id,不会自动生成id,和视频中的不一样啊

解决: 其实是可以的,不过put不可以 POST才可以

 

中文输入有问题:

待解决:

基本操作记录

GET _search
{
  "query": {
    "match_all": {}
  }
}


PUT test
{
  "settings": {
    "index":{
      "number_of_shards":5,
      "number_of_replicas":1
    }
  }
}

GET test/_settings

GET _all/_settings

GET  .kibana,test/_settings

GET  _settings


PUT  test/_settings
{
  "number_of_replicas": 2
}

PUT  test/_settings
{
  "number_of_shards": 4
}

GET _all



#create a document
#put
PUT test/job/2
{
  "title":"java scrapy",
  "salary_min":15000,
  "city":"beijing",
  "company":{
    "name":"baidu",
    "company_address":"beijing software park"
  },
  "publish_date":"2019-5-20",
  "comments":15
  
}
#post
POST test/job/
{
  "title":"c language scrapy",
  "salary_min":15000,
  "city":"beijing",
  "company":{
    "name":"baidu",
    "company_address":"beijing software park"
  },
  "publish_date":"2019-5-20",
  "comments":15
  
}

GET test/job/1


GET test/job/1?_source


#update
#put
PUT test/job/2
{
  "title":"java scrapy",
  "salary_min":2000,
  
  "company":{
    "name":"baidu",
    "company_address":"beijing software park"
  },
  "publish_date":"2019-5-20",
  "comments":15
  
}

#post
POST test/job/1/_update
{
  "doc": {
    "comments":20
  }
}

#delete
#delete document

DELETE test/job/1

#delete type not supported

#delete index
DELETE test

批量操作

action_and_meta_data\n
optional_source\n

kibana 操作

标签:lis   creat   let   source   中文   update   har   number   test   

原文地址:https://www.cnblogs.com/zdj8023/p/10897019.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!