TransportClient.builder()。构建()。addTransportAddress(新 InetSocketTransportAddress(searchConfiguration.getHost() searchConfiguration.getPort())
但我在
时遇到错误searchConfiguration.getHost(),searchConfiguration.getPort()
如何传递这些参数?
答案 0 :(得分:0)
<code>
TransportClient.builder().build()
.addTransportAddress(
new InetSocketTransportAddress(
InetAddress.getByName(
searchConfiguration.getHost()),
searchConfiguration.getPort()))
</code>