File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
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
99--------------------------------------------------
1010Settings settings = Settings.builder().put("cluster.name", "elasticsearch").build();
1111TransportClient 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)));
1313--------------------------------------------------
1414
1515Otherwise 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 99--------------------------------------------------
1010Settings settings = Settings.builder().put("cluster.name", "elasticsearch").build();
1111TransportClient 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)));
1313--------------------------------------------------
1414
1515Before the `percolate` query can be used an `percolator` mapping should be added and
You can’t perform that action at this time.
0 commit comments