feige
2023-09-16 d29cce61fb3a38f9f57a64a2a20d276b0d1254bc
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,55 @@
 * @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中业务数据 对应的业务数据库表名称*/
    @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;
}