From 3565ef641c4204aaf7d9a2eaf770ca034110f67a Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期四, 20 十一月 2025 09:16:04 +0800
Subject: [PATCH] 名称加*
---
framework/src/main/java/cn/lili/modules/lmk/service/impl/VideoEsServiceImpl.java | 21 +++++++++++----------
1 files changed, 11 insertions(+), 10 deletions(-)
diff --git a/framework/src/main/java/cn/lili/modules/lmk/service/impl/VideoEsServiceImpl.java b/framework/src/main/java/cn/lili/modules/lmk/service/impl/VideoEsServiceImpl.java
index 7d9a4d8..3823ce3 100644
--- a/framework/src/main/java/cn/lili/modules/lmk/service/impl/VideoEsServiceImpl.java
+++ b/framework/src/main/java/cn/lili/modules/lmk/service/impl/VideoEsServiceImpl.java
@@ -108,7 +108,6 @@
}
// 2. 澶氱嚎绋嬫煡璇㈣棰戞暟鎹紝鏋勫缓鏂囨。瀵硅薄
Long totalVideo = new LambdaQueryChainWrapper<>(videoMapper)
- .eq(Video::getStatus, VideoStatusEnum.PUBLISHED.getValue())
.count();
int totalThreads = (int) Math.ceil((double) totalVideo / 200); // 璁$畻闇�瑕佸灏戜釜绾跨▼
CountDownLatch latch = new CountDownLatch(totalThreads);
@@ -155,15 +154,17 @@
}
@Override
- public void addOrUpdateDocument(String indexName, String id, Object data) {
- indexName = this.getIndexFullName(indexName);
- IndexRequest request = new IndexRequest(indexName);
- request.id(id).source(data);
- try {
- client.index(request, RequestOptions.DEFAULT);
- } catch (IOException e) {
- throw new RuntimeException("es鏂囨。娣诲姞/淇敼澶辫触", e);
- }
+ public void addOrUpdateDocument(Object data) {
+ VideoIndex videoIndex = (VideoIndex) data;
+ esVideoIndexRepository.save(videoIndex);
+// indexName = this.getIndexFullName(indexName);
+// IndexRequest request = new IndexRequest(indexName);
+// request.id(id).source(data);
+// try {
+// client.index(request, RequestOptions.DEFAULT);
+// } catch (IOException e) {
+// throw new RuntimeException("es鏂囨。娣诲姞/淇敼澶辫触", e);
+// }
}
@Override
--
Gitblit v1.8.0