elastic需要密码java怎么链接
发布网友
发布时间:2022-07-11 00:58
我来回答
共1个回答
热心网友
时间:2022-07-11 01:01
package cn.test;
import java.net.InetAddress;
import java.net.UnknownHostException;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.action.search.SearchType;
import org.elasticsearch.client.transport.TransportClient;
import org.elasticsearch.common.settings.Settings;