package com.storlead.es.service.impl;

import com.storlead.es.pojo.vo.EsGenericVO;
import com.storlead.es.pojo.vo.EsQuerySimilarityVO;
import com.storlead.es.service.EsSearchCustomerService;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * ES 未启用时的空实现，避免业务模块强依赖 Elasticsearch 运行时。
 */
@Service
@ConditionalOnProperty(prefix = "storlead.es", name = "enabled", havingValue = "false", matchIfMissing = true)
public class NoopEsSearchCustomerServiceImpl implements EsSearchCustomerService {

    @Override
    public List<EsQuerySimilarityVO> listComparisonSimilarity(EsGenericVO dto) {
        return Collections.emptyList();
    }
}
