package com.luojia_channel.modules.search.entity;

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;


@Data
@Document(indexName = "user_index")
public class EsUser {
    @Id
    private Long id;

    @Field(type = FieldType.Text, analyzer = "ik_max_word")
    private String username;

    @Field(type = FieldType.Keyword)
    private String studentId;

    private String avatar;
    private Integer gender;


    private Integer integral;

    @Field(type = FieldType.Keyword)
    private String college;
}
