package com.ltgk.common.config;

import org.apache.solr.client.solrj.SolrClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.solr.core.SolrTemplate;

/**
 * @Author: wan kun
 * @Description: TODO
 * @Date: 2024/9/20 17:40
 * @Version: 1.0
 */
@Configuration
public class SolrConfig {

    @Bean
    public SolrTemplate solrTemplate(SolrClient solrClient) {
        return new SolrTemplate(solrClient);
    }
}
