File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ When using the `has_parent` query it is important to use the `PreBuiltTransportC
9
9
--------------------------------------------------
10
10
Settings settings = Settings.builder().put("cluster.name", "elasticsearch").build();
11
11
TransportClient client = new PreBuiltTransportClient(settings);
12
- client.addTransportAddress(new InetSocketTransportAddress (new InetSocketAddress(InetAddresses.forString("127.0.0.1"), 9300)));
12
+ client.addTransportAddress(new TransportAddress (new InetSocketAddress(InetAddresses.forString("127.0.0.1"), 9300)));
13
13
--------------------------------------------------
14
14
15
15
Otherwise the parent-join module doesn't get loaded and the `has_parent` query can't be used from the transport client.
Original file line number Diff line number Diff line change 9
9
--------------------------------------------------
10
10
Settings settings = Settings.builder().put("cluster.name", "elasticsearch").build();
11
11
TransportClient client = new PreBuiltTransportClient(settings);
12
- client.addTransportAddress(new InetSocketTransportAddress (new InetSocketAddress(InetAddresses.forString("127.0.0.1"), 9300)));
12
+ client.addTransportAddress(new TransportAddress (new InetSocketAddress(InetAddresses.forString("127.0.0.1"), 9300)));
13
13
--------------------------------------------------
14
14
15
15
Before the `percolate` query can be used an `percolator` mapping should be added and
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ TransportClient client = new PreBuiltXPackTransportClient(Settings.builder()
116
116
.put("cluster.name", "myClusterName")
117
117
...
118
118
.build())
119
- .addTransportAddress(new InetSocketTransportAddress (InetAddress.getByName("localhost"), 9300));
119
+ .addTransportAddress(new TransportAddress (InetAddress.getByName("localhost"), 9300));
120
120
121
121
XPackClient xpackClient = new XPackClient(client);
122
122
WatcherClient watcherClient = xpackClient.watcher();
You can’t perform that action at this time.
0 commit comments