Commit d2c076f1 authored by tianbo's avatar tianbo

bugfix(jg):更新es scroll存活时间为180秒

parent 8181f7e7
...@@ -1379,7 +1379,7 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD ...@@ -1379,7 +1379,7 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
// 发送初始搜索请求 // 发送初始搜索请求
SearchRequest searchRequest = new SearchRequest(JG_ALL_ES_INDEX); SearchRequest searchRequest = new SearchRequest(JG_ALL_ES_INDEX);
searchRequest.scroll(new TimeValue(60, TimeUnit.SECONDS)); // 设置Scroll上下文的持续时间 searchRequest.scroll(new TimeValue(180, TimeUnit.SECONDS)); // 设置Scroll上下文的持续时间
searchRequest.source(searchSourceBuilder); searchRequest.source(searchSourceBuilder);
List<ESEquipmentCategoryDto> recordList = Lists.newArrayList(); List<ESEquipmentCategoryDto> recordList = Lists.newArrayList();
int saveCount = 0; int saveCount = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment