Browse Source

fix batchSize cannot be used with count

itizawa 5 năm trước cách đây
mục cha
commit
64e61f80dd
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/server/service/search-delegator/elasticsearch.js

+ 1 - 1
src/server/service/search-delegator/elasticsearch.js

@@ -390,7 +390,7 @@ class ElasticsearchDelegator {
         { path: 'revision', model: 'Revision', select: 'body' },
       ])
       .lean()
-      .cursor({ batchSize: BULK_REINDEX_SIZE });
+      .cursor();
 
     let skipped = 0;
     const thinOutStream = new Transform({