whywhyo
2023-09-25 dbd016a08db9a4461ff91b055039d359f05283ba
ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/EsModel.java
@@ -2,7 +2,6 @@
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;
@@ -16,55 +15,70 @@
 * @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;
    /** 备用6 */
    @Field(index = true,type = FieldType.Text,analyzer = "ik_max_word")
    private String by7;
}