标签: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
标签:lis creat let source 中文 update har number test
原文地址:https://www.cnblogs.com/zdj8023/p/10897019.html