Skip to content

Commit

Permalink
[Docs] Update code snippet in has-child-query.asciidoc (#30510)
Browse files Browse the repository at this point in the history
Changed `InetSocketTransportAddress` to `TransportAddress`, as that 
seems to be  the thing now.
  • Loading branch information
lukens authored and Christoph Büscher committed May 16, 2018
1 parent d212b30 commit 0b82d6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/java-api/query-dsl/has-child-query.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ When using the `has_child` query it is important to use the `PreBuiltTransportCl
--------------------------------------------------
Settings settings = Settings.builder().put("cluster.name", "elasticsearch").build();
TransportClient client = new PreBuiltTransportClient(settings);
client.addTransportAddress(new InetSocketTransportAddress(new InetSocketAddress(InetAddresses.forString("127.0.0.1"), 9300)));
client.addTransportAddress(new TransportAddress(new InetSocketAddress(InetAddresses.forString("127.0.0.1"), 9300)));
--------------------------------------------------

Otherwise the parent-join module doesn't get loaded and the `has_child` query can't be used from the transport client.
Expand Down

0 comments on commit 0b82d6d

Please sign in to comment.