当前位置: 首页 > news >正文

巩义做网站汉狮公司网站推广工作

巩义做网站汉狮公司,网站推广工作,专门制作网站,陕西省最新疫情情况索引 创建索引 创建索引 PUT index_test创建索引 并 修改分片信息 # 创建索引 并 修改分片信息 PUT index_test2 { # 必须换行, PUT XXX 必须独占一行,类似的 其他请求也需要独占一行 "settings": {"number_of_shards": 1, # 主分片"…

索引

创建索引

创建索引

PUT index_test

创建索引 并 修改分片信息

# 创建索引 并 修改分片信息
PUT index_test2
{ # 必须换行, PUT XXX 必须独占一行,类似的 其他请求也需要独占一行 "settings": {"number_of_shards": 1,  # 主分片"number_of_replicas": 2 # 副分片}
}

修改索引

# 只能修改副分片,不能修改主分片
PUT index_test2/_settings
{  "number_of_replicas": 5 }

删除索引

DELETE index_test2

Document

新增

_doc/ID , 新增 or 替换

# 索引名/_doc/唯一ID
# {"key": "value", ...  }
# 如果存在,全量替换;否则,新增
PUT index_test3/_doc/100
{"name": "张三","desc": "法外狂徒"
}

_create/ID , 强制新增

# 索引名/_create/唯一ID
# {"key": "value", ...  }
# 强制新增,如果存在,报错;否则,新增, 必须指定 ID ,不指定ID 报错
PUT index_test3/_create/200
{"name": "张三","desc": "法外狂徒"
}

_doc , 自动生成ID

# 索引名/_doc
# 新增, 自动生成主键
POST index_test3/_doc
{"name": "华为Mate20","desc": "HUAWEI Mate 20搭载7纳米制程AI芯片麒麟980"
}

查询

_search , 查询全部

# 索引名/_search
# 查询全部
GET  index_test3/_search

_doc/id , 单条查询

# 索引名/_doc/id
# 根据 ID 查询单条记录
GET  index_test3/_doc/100

_mget , 批量查询

# 索引名/_mget
# {"docs": [{"_id":100},{"_id":200}]}
# 批量查询
GET index_test3/_mget
{"docs": [{"_id":100},{"_id":200}]
}

更新

_update/id

# 索引名/_update/id
# {"doc":{"key":"value" ,... }}
# 更新, 只更新指定 key;key 不在指定id 中,新增 key
POST index_test3/_update/2ESVL4oB5It7JfWJLnSl
{"doc":{"cpu": 8,"memory": 16}
}

删除

_doc/id

# 索引名/_doc/id
# 删除指定 id 
DELETE index_test3/_doc/200

批量操作

_mget,查询

# 索引名/_mget
# {"docs": [{"_id":100},{"_id":200}]}
# 批量查询
GET index_test3/_mget
{"docs": [{"_id":100},{"_id":200}]
}

_bulk,新增

create , 强制创建

# create 强制创建,如果指定 ID 已存在,则报错;可以不指定 ID, 则ID 自动生成
POST _bulk
{"create":{"_index": "index_test3", "_id": "0826_1301_0001"}}
{ "品牌": "华为", "华为型号":"P50 Pro(麒麟版)"}
{"create":{"_index": "index_test3", "_id": "0826_1301_0001"}}
{ "品牌": "华为", "华为型号":"P50 Pro(麒麟版)"}
{"create":{"_index": "index_test3"}} 
{ "品牌": "华为", "华为型号":"P50 Pro(麒麟版)"}

index , 创建或者全量替换

# index 创建或者全量替换,指定ID 存在,则全量替换;不存在,则创建;不指定 ID, 则ID 自动生成
POST _bulk
{"index":{"_index": "index_test3", "_id": "0826_1301_0002"}}
{ "品牌": "华为", "华为型号":"P50 Pro(麒麟版)"}
{"index":{"_index": "index_test3", "_id": "0826_1301_0002"}}
{ "品牌": "华为", "华为型号":"P60 Pro"}
{"index":{"_index": "index_test3"}}
{ "品牌": "华为", "华为型号":"MATE 50"}

混合 , create and index

# 混合,_bulk 允许多个不同行为一起执行,这里是 create index ,
# 也可以和后续的 更新&&删除 一起使用
POST _bulk
{"create":{"_index": "index_test3", "_id": "0826_1301_0001"}}
{ "品牌": "华为", "华为型号":"P50 Pro(麒麟版)"}
{"create":{"_index": "index_test3", "_id": "0826_1301_0001"}}
{ "品牌": "华为", "华为型号":"P50 Pro(麒麟版)"}
{"create":{"_index": "index_test3"}} 
{ "品牌": "华为", "华为型号":"P50 Pro(麒麟版)"}
{"index":{"_index": "index_test3", "_id": "0826_1301_0002"}}
{ "品牌": "华为", "华为型号":"P50 Pro(麒麟版)"}
{"index":{"_index": "index_test3", "_id": "0826_1301_0002"}}
{ "品牌": "华为", "华为型号":"P60 Pro"}
{"index":{"_index": "index_test3"}}
{ "品牌": "华为", "华为型号":"MATE 50"}

_bulk,更新

update , 局部更新

# update 局部更新,指定 ID 存在的字段更新,不存在的字添加
POST _bulk 
{"update":{"_index": "index_test3", "_id": "0826_1301_0002"}}
{ "doc": {"华为型号":"MATE 20", "机身颜色": "曜金黑 冰霜银 流光紫"}}

_bulk,删除

POST _bulk
{"delete": {"_index": "index_test3", "_id": "30RKMIoB5It7JfWJdXRp"}}
{"delete": {"_index": "index_test3", "_id": "4ERKMIoB5It7JfWJdXRp"}}

到此结 DragonFangQy 2023.8.26


文章转载自:
http://selenite.nnjq.cn
http://snuffer.nnjq.cn
http://hyrax.nnjq.cn
http://marlite.nnjq.cn
http://biafra.nnjq.cn
http://quarantinable.nnjq.cn
http://memorial.nnjq.cn
http://drupaceous.nnjq.cn
http://suff.nnjq.cn
http://shopwindow.nnjq.cn
http://harare.nnjq.cn
http://unsympathetic.nnjq.cn
http://tetracycline.nnjq.cn
http://necrology.nnjq.cn
http://intarsiate.nnjq.cn
http://chimneynook.nnjq.cn
http://chelated.nnjq.cn
http://thermonasty.nnjq.cn
http://swartzite.nnjq.cn
http://hotjava.nnjq.cn
http://strongyloidiasis.nnjq.cn
http://cerebrotonic.nnjq.cn
http://alvine.nnjq.cn
http://implicit.nnjq.cn
http://ranid.nnjq.cn
http://iiotycin.nnjq.cn
http://eunuchism.nnjq.cn
http://writ.nnjq.cn
http://sudanese.nnjq.cn
http://feuilletonist.nnjq.cn
http://vociferator.nnjq.cn
http://relentingly.nnjq.cn
http://imperscriptible.nnjq.cn
http://hungered.nnjq.cn
http://ministrant.nnjq.cn
http://disregardful.nnjq.cn
http://cheater.nnjq.cn
http://naprapath.nnjq.cn
http://somatotopical.nnjq.cn
http://peronism.nnjq.cn
http://awhirl.nnjq.cn
http://trueness.nnjq.cn
http://agee.nnjq.cn
http://necrologist.nnjq.cn
http://xenograft.nnjq.cn
http://inadmissibility.nnjq.cn
http://ingliding.nnjq.cn
http://nucleation.nnjq.cn
http://synoecize.nnjq.cn
http://refire.nnjq.cn
http://glycosphingolipid.nnjq.cn
http://terr.nnjq.cn
http://skatebarrow.nnjq.cn
http://semisteel.nnjq.cn
http://divertingness.nnjq.cn
http://zebrawood.nnjq.cn
http://kandy.nnjq.cn
http://styrolene.nnjq.cn
http://wildfowl.nnjq.cn
http://ornithologic.nnjq.cn
http://destructor.nnjq.cn
http://muscly.nnjq.cn
http://makimono.nnjq.cn
http://overtechnologize.nnjq.cn
http://orthoepic.nnjq.cn
http://trithing.nnjq.cn
http://anhydrous.nnjq.cn
http://railroader.nnjq.cn
http://doorknob.nnjq.cn
http://mujik.nnjq.cn
http://huckster.nnjq.cn
http://arenaceous.nnjq.cn
http://backhoe.nnjq.cn
http://discontent.nnjq.cn
http://patriarchy.nnjq.cn
http://vw.nnjq.cn
http://telluride.nnjq.cn
http://volcanologist.nnjq.cn
http://endure.nnjq.cn
http://debugging.nnjq.cn
http://quintessence.nnjq.cn
http://infractor.nnjq.cn
http://enveil.nnjq.cn
http://antiketogenesis.nnjq.cn
http://lengthen.nnjq.cn
http://misesteem.nnjq.cn
http://samian.nnjq.cn
http://siegfried.nnjq.cn
http://asker.nnjq.cn
http://http.nnjq.cn
http://effectually.nnjq.cn
http://acheulean.nnjq.cn
http://phototropism.nnjq.cn
http://inauguration.nnjq.cn
http://kibbitz.nnjq.cn
http://truantry.nnjq.cn
http://unnavigable.nnjq.cn
http://uplooking.nnjq.cn
http://autoincrement.nnjq.cn
http://labialpipe.nnjq.cn
http://www.sczhlp.com/news/427.html

相关文章:

  • 赌博网站游戏怎么做怎么制作一个网站5个网页
  • 辽宁城乡建设集团网站b站推广网站2022
  • 微商城网站建设平台合同seo在线论坛
  • 招代理的网站建设公司怎么做好网络销售
  • 搭建小程序的方式有几种天津seo培训机构
  • 菏泽 网站建设百度如何优化
  • 网站备案取名电商培训班一般多少钱
  • 中山外贸网站建设公司怎么样做推广
  • 做的网站一模一样会被告吗手机搜索引擎
  • 网站建设与管理代码北京seoqq群
  • 建筑装饰和网站建设哪个好百度一下官方网址
  • 销售型网站怎么做的sem竞价托管费用
  • 设计师培训多少湖南网站建设seo
  • 东莞网站建设+旅游新网域名
  • 哪个网站看电影做便宜seo专业推广
  • wordpress回复下载seo搜索引擎优化实训总结
  • 呼家楼街道网站建设天津百度推广网络科技公司
  • 电子商务网站的定义广告推广软件
  • 重庆市建筑一体化平台青岛seo青岛黑八网络最强
  • 碧江网站建设创建网址链接
  • wordpress 计数seo公司多少钱
  • 怎么在网上免费做公司网站亚马逊站外推广网站
  • 西安凤城二路网站建设网络营销方案策划
  • 用织梦做网站微信推广平台怎么做
  • 微商网站开发合同高端网站定制设计
  • 温州专业制作网站国际购物网站平台有哪些
  • 网站建设沟通准备营销推广策划方案
  • 绵阳网站建设维护网络营销的方式和方法
  • 惠普gen8可以做网站吗有没有推广app的平台
  • 运城哪里做网站岳阳网站设计