فهرست منبع

add `waitForCompletion: false` when reindex

Yuki Takei 6 سال پیش
والد
کامیت
3e60043795
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      src/server/util/search.js

+ 1 - 0
src/server/util/search.js

@@ -165,6 +165,7 @@ SearchClient.prototype.buildIndex = async function(uri) {
   // reindex to tmp index
   await this.createIndex(tmpIndexName);
   await client.reindex({
+    waitForCompletion: false,
     body: {
       source: { index: indexName },
       dest: { index: tmpIndexName },