import java.util.List;
import java.util.Map;
public class ElasticsearchClient {
private static final Logger logger = LogManager.getLogger(ElasticsearchClient.class);
private final RestClient client;
<BUG>private String FIELDS = null;
private ElasticsearchClient(List<Node> nodes, String username, String password) {</BUG>
List<HttpHost> hosts = new ArrayList<>(nodes.size());
for (Node node : nodes) {
hosts.add(new HttpHost(node.getHost(), node.getPort(), node.getScheme().toLowerCase()));

import java.util.List;
import java.util.Map;
public class ElasticsearchClient {
private static final Logger logger = LogManager.getLogger(ElasticsearchClient.class);
private final RestClient client;
private String FIELDS = null;
private boolean INGEST_SUPPORT = true;
private String VERSION = null;
private ElasticsearchClient(List<Node> nodes, String username, String password) {
List<HttpHost> hosts = new ArrayList<>(nodes.size());
for (Node node : nodes) {
hosts.add(new HttpHost(node.getHost(), node.getPort(), node.getScheme().toLowerCase()));
