From 2f65a830dcbea60c4e1854cd08a59410c68db724 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期三, 02 七月 2025 16:16:04 +0800 Subject: [PATCH] 视频搜索接口,视频es索引加发布时间字段,重构视频es索引的sql完善 --- framework/src/main/java/cn/lili/modules/lmk/domain/es/VideoIndex.java | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/framework/src/main/java/cn/lili/modules/lmk/domain/es/VideoIndex.java b/framework/src/main/java/cn/lili/modules/lmk/domain/es/VideoIndex.java index b38db0a..09f10d3 100644 --- a/framework/src/main/java/cn/lili/modules/lmk/domain/es/VideoIndex.java +++ b/framework/src/main/java/cn/lili/modules/lmk/domain/es/VideoIndex.java @@ -9,6 +9,7 @@ import org.springframework.data.elasticsearch.annotations.Field; import org.springframework.data.elasticsearch.annotations.FieldType; +import java.util.Date; import java.util.List; /** @@ -91,4 +92,19 @@ @Field(type = FieldType.Keyword) private boolean recommend = false; + /** 瑙嗛鏀惰棌鏁� */ + @Field(type = FieldType.Integer) + private Integer collectNum; + + /** 瑙嗛鐐硅禐鏁� */ + @Field(type = FieldType.Integer) + private Integer thumbsUpNum; + + /** 瑙嗛璇勮鏁� */ + @Field(type = FieldType.Integer) + private Integer commentNum; + + /** 瑙嗛鍙戝竷鏃堕棿锛堝鏍搁�氳繃鏃堕棿锛� */ + @Field(type = FieldType.Date) + private Date publishTime; } -- Gitblit v1.8.0