package com.dfem.pms.es.model;

import lombok.Data;
import org.dromara.easyes.annotation.IndexField;
import org.dromara.easyes.annotation.IndexName;
import org.dromara.easyes.annotation.rely.Analyzer;
import org.dromara.easyes.annotation.rely.FieldType;

@Data
@IndexName("test_doc")
public class TestDoc {
    private String id;
    private String title;
    @IndexField(fieldType = FieldType.TEXT,analyzer = Analyzer.IK_SMART)
    private String content;
    private String author;
    @IndexField(fieldType = FieldType.INTEGER)
    private Integer star;
}
