jinquanOu
2024-06-11 5d7b0a0bbcae6844e2296ef53c3f4c88293dacfe
ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/EsModel.java
@@ -2,12 +2,13 @@
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.joda.time.DateTime;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;
import java.sql.Timestamp;
import java.util.Date;
/**
@@ -16,55 +17,105 @@
 * @author feige
 * @date 2023-09-14
 */
@Document(indexName = "allsearch")
@Document(indexName = "allsearchdata")
@Data
public class EsModel {
    /*** 索引id*/
    @Id
    @Field(type = FieldType.Text)
    private String id;
    /**** es中对应的数据库业务单据id*/
    @Field(analyzer = "ik_max_word")
    @Field(index = true,type = FieldType.Long)
    private Long ctId;
    /**** es中对应的数据所属家庭id*/
    @Field(index = true,type = FieldType.Long)
    private Long fid;
    /**** es中业务数据 对应的业务数据库表名称*/
    @Field(analyzer = "ik_max_word")
    @Field(type = FieldType.Text,analyzer = "ik_max_word")
    private String ctTableName;
    /**** es中业务数据 对应的 业务简称*/
    @Field(analyzer = "ik_max_word")
    @Field(index = true,type = FieldType.Text,analyzer = "ik_max_word")
    private String ctName;
    /**** es中业务数据 对应的 业务内容详细信息*/
    @Field(analyzer = "ik_max_word")
    @Field(index = true,type = FieldType.Text
            ,analyzer = "ik_max_word")
    private String ctContent;
    /** 备注 */
    @Field(analyzer = "ik_max_word")
    @Field(index = true,type = FieldType.Text,analyzer = "ik_max_word")
    private String remark;
    /** 备用1 */
    @Field(analyzer = "ik_max_word")
    @Field(index = true,type = FieldType.Text,analyzer = "ik_max_word")
    private String by1;
    /** 备用2 */
    @Field(analyzer = "ik_max_word")
    @Field(index = true,type = FieldType.Text,analyzer = "ik_max_word")
    private String by2;
    /** 备用3 */
    @Field(analyzer = "ik_max_word")
    @Field(index = true,type = FieldType.Text,analyzer = "ik_max_word")
    private String by3;
    /** 备用4 */
    @Field(analyzer = "ik_max_word")
    @Field(index = true,type = FieldType.Text,analyzer = "ik_max_word")
    private String by4;
    /** 备用5 */
    @Field(analyzer = "ik_max_word")
    @Field(type = FieldType.Text,analyzer = "ik_max_word")
    private String by5;
    /** 备用6 */
    @Field(index = true,type = FieldType.Text,analyzer = "ik_max_word")
    private String by6;
    /** 备用7 */
    @Field(index = true,type = FieldType.Text,analyzer = "ik_max_word")
    private String by7;
    /** 备用8*/
    @Field(index = true,type = FieldType.Text,analyzer = "ik_max_word")
    private int by8;
    /** 备用9 */
    @Field(index = true,type = FieldType.Text,analyzer = "ik_max_word")
    private int by9;
    /** 备用10 */
    @Field(index = true,type = FieldType.Text,analyzer = "ik_max_word")
    private int by10;
    /** 备用11 */
    @Field(index = true,type = FieldType.Text,analyzer = "ik_max_word")
    private int by11;
    /** 备用12 */
    @Field(index = true,type = FieldType.Text,analyzer = "ik_max_word")
    private int by12;
    /** 备用13 */
    @Field(index = true,type = FieldType.Text,analyzer = "ik_max_word")
    private int by13;
    /** 备用14 */
    @Field(index = true,type = FieldType.Date,analyzer = "ik_max_wor")
    private Date by14;
    /** 备用15 */
    @Field(index = true,type = FieldType.Date,analyzer = "ik_max_wor")
    private Date by15;
    /** 备用16 */
    @Field(index = true,type = FieldType.Date,analyzer = "ik_max_wor ")
    private Timestamp by16;
}