原文:Elasticsearch -刪除索引(index)

刪除單個: DELETE indexcurl XDELETE http: . . . : index 你也可以這樣刪除多個索引: DELETE index one,index two curl XDELETE http: . . . : index one,index two DELETE index curl XDELETE http: . . . : index 刪除 全部 索引 強烈不建議 ...

2021-03-04 16:55 0 351 推薦指數:

查看詳情

定期刪除elasticsearchindex 索引

#!/bin/bashfind /data/elasticsearch/data/pro-kz-log/nodes/0/indices/ -type d -mtime +7 | awk -F"/" '{print $9}' | grep -v kibana | uniq > /home ...

Tue Aug 29 17:47:00 CST 2017 0 1485
Elasticsearch查詢Index以及刪除

查詢Index信息 GET /bank HTTP/1.1Host: localhost:9200 { "bank": { "aliases": {}, "mappings": { "_doc": { "properties": { "account_number": { "type ...

Wed Mar 20 22:55:00 CST 2019 0 1338
Elasticsearch 索引Index API(7.5.0)

1. Java代碼層配置模板,執行成功將打印自定義的放置模板成功幾個字,可前往官網地址:https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/java-rest-high-put-template.html ...

Thu Aug 29 22:02:00 CST 2019 0 847
Elasticsearch Shrink Index 縮小索引

1.縮小索引是指將原索引分片數縮小到一定數量。但縮小的數量必須為原數量的因子(即原分片數量是新分片倍數),例如8個分片可以縮小到4、2、1個分片。如果原分片數量為素數則只能縮小到一個分片。在縮小開始時,每個分片的復制都必須在同一節點(node)存在。 2.過程如下: 首先,以相同配置創建 ...

Thu Apr 04 23:08:00 CST 2019 0 795
Elasticsearch split index 拆分索引

1.將索引的分片數拆分成多個。 _split API要求必須使用特定的number_of_routing_shards創建源索引,以便將來進行分割。在Elasticsearch 7.0中已經刪除了這一要求。 索引可以拆分多次,但拆分的最大分片數是由創建索引 ...

Fri Apr 05 00:16:00 CST 2019 0 1541
Elasticsearch rollover index滾動索引

滾動索引一般可以與索引模板結合使用,實現按一定條件自動創建索引。 1.當現有索引被認為太大或太舊時,滾動索引API會將別名滾動到新的索引。 創建索引 logs-0000001 別名為 logs_write.如果 logs_write 指向的索引是在7天以前創建的,或者包含 ...

Wed Apr 10 01:33:00 CST 2019 0 3067
Elasticsearch之增加和刪除索引

增加索引 利用postMan工具發送restfulAPI添加索引庫 請求方式為put代表添加 創建索引index時映射mapping 請求URL: 使用put發送http://localhost:9200/blog1 { "mappings ...

Thu Feb 27 00:16:00 CST 2020 0 5347
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM