package com.github.microservice.auth.server.core.conf;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
@ConfigurationProperties(prefix = "redisearch")
public class RedisearchConf {

    /**/
    private String host;

    private int port;

    private String username;

    private String password;


    /*******************索引参数***********************/

    /*索引名*/
    private String indexName;

    /*索引字段*/
    private String fieldName;

    /*索引key前缀*/
    private String prefix;

    /*向量维度*/
    private String dim;

    /*相似度*/
    private String score;
}
