Преглед изворни кода

Avoid timeout when rebuilding index

Sotaro KARASAWA пре 9 година
родитељ
комит
2a046655fd
1 измењених фајлова са 4 додато и 1 уклоњено
  1. 4 1
      lib/util/search.js

+ 4 - 1
lib/util/search.js

@@ -226,7 +226,10 @@ SearchClient.prototype.addAllPages = function()
       // all done
 
       // 最後に送信
-      self.client.bulk({ body: body, })
+      self.client.bulk({
+        body: body,
+        requestTimeout: Infinity,
+      })
       .then(function(res) {
         debug('Reponse from es:', res);
         return resolve(res);