mirror of
https://gitee.com/270580156/weiyu.git
synced 2026-05-16 20:27:50 +00:00
update modules/kbase: add 1 mod 3 files
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* @Author: jackning 270580156@qq.com
|
||||
* @Date: 2025-04-22 17:02:50
|
||||
* @LastEditors: jackning 270580156@qq.com
|
||||
* @LastEditTime: 2025-07-03 12:55:52
|
||||
* @LastEditTime: 2025-07-03 15:19:57
|
||||
* @Description: bytedesk.com https://github.com/Bytedesk/bytedesk
|
||||
* Please be aware of the BSL license restrictions before installing Bytedesk IM –
|
||||
* selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license.
|
||||
@@ -38,13 +38,13 @@ public class FaqElastic {
|
||||
@Id
|
||||
private String uid;
|
||||
|
||||
@Field(type = FieldType.Text, analyzer = "ik_max_word")
|
||||
@Field(type = FieldType.Text)
|
||||
private String question;
|
||||
|
||||
@Field(type = FieldType.Text, analyzer = "ik_max_word")
|
||||
@Field(type = FieldType.Text)
|
||||
private String answer;
|
||||
|
||||
@Field(type = FieldType.Text, analyzer = "ik_max_word")
|
||||
@Field(type = FieldType.Text)
|
||||
private List<String> similarQuestions;
|
||||
|
||||
@Field(type = FieldType.Keyword)
|
||||
@@ -63,19 +63,13 @@ public class FaqElastic {
|
||||
private Boolean enabled;
|
||||
|
||||
// startDate
|
||||
@Field(type = FieldType.Keyword)
|
||||
@Field(type = FieldType.Date)
|
||||
private String startDate;
|
||||
|
||||
// endDate
|
||||
@Field(type = FieldType.Keyword)
|
||||
@Field(type = FieldType.Date)
|
||||
private String endDate;
|
||||
|
||||
// @Field(type = FieldType.Date, format = DateFormat.date_hour_minute_second_millis)
|
||||
// private ZonedDateTime createdAt;
|
||||
|
||||
// @Field(type = FieldType.Date, format = DateFormat.date_hour_minute_second_millis)
|
||||
// private ZonedDateTime updatedAt;
|
||||
|
||||
@Field(type = FieldType.Integer)
|
||||
private Integer viewCount;
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ public class ChunkElastic {
|
||||
@Field(type = FieldType.Keyword)
|
||||
private String name;
|
||||
|
||||
@Field(type = FieldType.Text, analyzer = "ik_max_word", searchAnalyzer = "ik_smart")
|
||||
@Field(type = FieldType.Text)
|
||||
private String content;
|
||||
|
||||
@Field(type = FieldType.Keyword)
|
||||
@@ -54,10 +54,10 @@ public class ChunkElastic {
|
||||
@Field(type = FieldType.Boolean)
|
||||
private Boolean enabled;
|
||||
|
||||
@Field(type = FieldType.Keyword)
|
||||
@Field(type = FieldType.Date)
|
||||
private String startDate;
|
||||
|
||||
@Field(type = FieldType.Keyword)
|
||||
@Field(type = FieldType.Date)
|
||||
private String endDate;
|
||||
|
||||
@Field(type = FieldType.Keyword)
|
||||
@@ -71,16 +71,4 @@ public class ChunkElastic {
|
||||
|
||||
@Field(type = FieldType.Keyword)
|
||||
private String kbaseUid;
|
||||
|
||||
// @Field(type = FieldType.Date, format = DateFormat.date_hour_minute_second_millis)
|
||||
// private ZonedDateTime createdAt;
|
||||
|
||||
// @Field(type = FieldType.Date, format = DateFormat.date_hour_minute_second_millis)
|
||||
// private ZonedDateTime updatedAt;
|
||||
|
||||
// @Field(type = FieldType.Keyword)
|
||||
// private String createdBy;
|
||||
|
||||
// @Field(type = FieldType.Keyword)
|
||||
// private String updatedBy;
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* @Author: jackning 270580156@qq.com
|
||||
* @Date: 2025-04-22 17:03:29
|
||||
* @LastEditors: jackning 270580156@qq.com
|
||||
* @LastEditTime: 2025-05-31 08:59:13
|
||||
* @LastEditTime: 2025-07-03 15:18:23
|
||||
* @Description: bytedesk.com https://github.com/Bytedesk/bytedesk
|
||||
* Please be aware of the BSL license restrictions before installing Bytedesk IM –
|
||||
* selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license.
|
||||
@@ -38,7 +38,7 @@ public class TextElastic {
|
||||
@Field(type = FieldType.Keyword)
|
||||
private String title;
|
||||
|
||||
@Field(type = FieldType.Text, analyzer = "ik_max_word", searchAnalyzer = "ik_smart")
|
||||
@Field(type = FieldType.Text)
|
||||
private String content;
|
||||
|
||||
@Field(type = FieldType.Keyword)
|
||||
@@ -53,19 +53,11 @@ public class TextElastic {
|
||||
@Field(type = FieldType.Boolean)
|
||||
private Boolean enabled;
|
||||
|
||||
// startDate
|
||||
@Field(type = FieldType.Keyword)
|
||||
@Field(type = FieldType.Date)
|
||||
private String startDate;
|
||||
|
||||
// endDate
|
||||
@Field(type = FieldType.Keyword)
|
||||
@Field(type = FieldType.Date)
|
||||
private String endDate;
|
||||
|
||||
// @Field(type = FieldType.Date, format = DateFormat.date_hour_minute_second_millis)
|
||||
// private ZonedDateTime createdAt;
|
||||
|
||||
// @Field(type = FieldType.Date, format = DateFormat.date_hour_minute_second_millis)
|
||||
// private ZonedDateTime updatedAt;
|
||||
|
||||
@Field(type = FieldType.Keyword)
|
||||
private String categoryUid;
|
||||
@@ -76,17 +68,4 @@ public class TextElastic {
|
||||
@Field(type = FieldType.Keyword)
|
||||
private List<String> docIdList;
|
||||
|
||||
// @Field(type = FieldType.Date)
|
||||
// private ZonedDateTime createdAt;
|
||||
|
||||
// @Field(type = FieldType.Date)
|
||||
// private ZonedDateTime updatedAt;
|
||||
|
||||
// @Field(type = FieldType.Keyword)
|
||||
// private String createdBy;
|
||||
|
||||
// @Field(type = FieldType.Keyword)
|
||||
// private String updatedBy;
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user