package com.tashow.cloud.es.config;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

@Data
public class ElasticsearchProperties {

    /**
     * 是否启用 Elasticsearch
     */
    private Boolean enabled = true;

    /**
     * 节点地址列表 (格式: http://ip:port)
     */
    private List<String> uris = List.of("http://43.139.42.137:9200");

    /**
     * 连接超时时间 (ms)
     */
    private Integer connectTimeout = 3000;

    /**
     * 通信超时时间 (ms)
     */
    private Integer socketTimeout = 10000;
}
