2021年11月15日
摘要: 接上用script update by query 按条件更新 POST book/_update_by_query {"script": { "lang": "painless", "source": """ ctx._source.numb="2" """ }, "query": { "term 阅读全文
posted @ 2021-11-15 19:07 InnoLeo 阅读(189) 评论(0) 推荐(0) 编辑
摘要: Elasticsearch Update By Query : 在现有索引 上重建 1 创建文档1 PUT book/_doc/1 { "content":"SAP Material mangagement", "keyword":"SAP" } 2.更改索引 PUT book/_mapping { 阅读全文
posted @ 2021-11-15 19:03 InnoLeo 阅读(587) 评论(0) 推荐(0) 编辑
摘要: 查看目标索引 get kibana_sample_data_ecommerce 查看目标索引有没有aliases get _aliases 创建aliases POST _aliases { "actions": [ { "add": { "index": "kibana_sample_data_e 阅读全文
posted @ 2021-11-15 14:54 InnoLeo 阅读(557) 评论(0) 推荐(0) 编辑
摘要: 本地reindex POST _reindex?wait_for_completion=true { "source": { "index": "person" }, "dest": { "index": "people" } } View Code 远程reindex elasticsearch. 阅读全文
posted @ 2021-11-15 13:53 InnoLeo 阅读(684) 评论(0) 推荐(0) 编辑
摘要: 创建测试数据 DELETE student # 创建 Nested 对象 Mapping PUT student { "mappings" : { "properties" : { "name" : { "type": "nested", "properties" : { "first_name" 阅读全文
posted @ 2021-11-15 12:47 InnoLeo 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 1找磁盘 lsblk parted /dev/nvme0n2 print 格式化 fdisk /dev/nvme0n2 查看分区结果 lsblk 格式化 mkfs.xfs /dev/nvme0n2p1 lsblk 看uuID 挂载 echo "UUID="fd7fe0fa-de0a-47c7-8a9 阅读全文
posted @ 2021-11-15 11:06 InnoLeo 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 1.配置 path.repo path.repo: ["/data/elasticsearch/repo","/workdata/esdata"] 2.创建测试数据 点击查看代码 PUT /person/_bulk {"index":{"_index":"person"}} {"name":"张三" 阅读全文
posted @ 2021-11-15 00:33 InnoLeo 阅读(539) 评论(0) 推荐(0) 编辑