package com.ruoyi.biemo.elasticsearch.entity;

import com.ruoyi.biemo.elasticsearch.annotation.EsId;
import lombok.Data;
import org.elasticsearch.index.analysis.CustomAnalyzer;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@Data
@Document(indexName = "topic")
public class Topic {

  @EsId
  private String id;
  private Long subject;
  private Long type;
  private String img;
  @Field(type = FieldType.Text,analyzer = "ik_max_word")
  private String content;
  private String contentStr;
  private Long score;
  private String audio;
  private String video;
  private Boolean disabled;
  private Boolean deleted;
  private String createdAt;
  private String updatedAt;
  private String answer;
  private String three;
  private String checkvalue;
}
