簡體   English   中英

Elasticsearch中特定索引的快照在Node.js上失敗

[英]Snapshot in Elasticsearch of a specific index failing on Node.js

我嘗試使用官方的node.js模塊中的indexs參數創建單個索引的快照,但是我總是最終獲得集群的完整快照。

@es.snapshot.create( 
   { snapshot: "#{uid}", indices: index, repository: @config.esrepo, include_global_state: false }
   ( err, created ) -> 
      ...
      ...
)

上面的coffeescript轉換成這樣的東西:

_this.es.snapshot.create({
            snapshot: uid,
            indices: index,
            repository: _this.config.esrepo,
            include_global_state: false
          }, function(err, created) {
              .....
          });

這是由於es客戶端中的錯誤或缺少功能嗎? 索引參數是在API中描述的,但在JS客戶端API中沒有描述...?

簡單的錯誤-讓我感到羞恥。 indices參數必須是body一部分,而我的請求中根本沒有該參數。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM