package com.search.supersearch.model.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * @author 喜欢番茄火锅
 * @date 2023/10/10 16:14
 */
@NoArgsConstructor
@Data
@AllArgsConstructor
@ToString
public class DocsIndexVO implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "总数")
    private Long total;
    @ApiModelProperty(value = "元数据")
    private List<Object> data;
    @ApiModelProperty(value = "编码")
    private String type;
    @ApiModelProperty(value = "名称")
    private String name;
    @Data
    public static class DocsIndexInfo {
        @ApiModelProperty(value = "元数据")
        private Object source;
        @ApiModelProperty(value = "高亮字段")
        private Map<String, List<String>> highlight;
        @ApiModelProperty(value = "翻页字段")
        private List<String> searchAfter;
    }
}
