import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.node.Node;
import org.springframework.beans.factory.annotation.Autowired;</BUG>
import org.springframework.beans.factory.annotation.Value;
<BUG>import org.springframework.stereotype.Component;
@Component</BUG>
public class ElasticSearchClientFactory {
private static Logger log = Logger.getLogger(ElasticSearchClientFactory.class);
private String clusterName;
<BUG>private String unicastHosts;
private Client client;</BUG>
@Autowired

import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.common.transport.InetSocketTransportAddress;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import java.net.InetAddress;
import java.net.UnknownHostException;
@Component
public class ElasticSearchClientFactory {
private static Logger log = Logger.getLogger(ElasticSearchClientFactory.class);
private String clusterName;
private String unicastHost;
private Client client;
@Autowired
