[DOCS] updated documentation for transport client changes
Updated dependency in Java API docs and added section in breaking changes
This commit is contained in:
parent
7b36a72ccb
commit
3f13f02575
|
@ -28,8 +28,8 @@ For example, you can define the latest version in your `pom.xml` file:
|
|||
[source,xml]
|
||||
--------------------------------------------------
|
||||
<dependency>
|
||||
<groupId>org.elasticsearch</groupId>
|
||||
<artifactId>elasticsearch</artifactId>
|
||||
<groupId>org.elasticsearch.client</groupId>
|
||||
<artifactId>transport</artifactId>
|
||||
<version>${es.version}</version>
|
||||
</dependency>
|
||||
--------------------------------------------------
|
||||
|
|
|
@ -4,6 +4,30 @@
|
|||
[[breaking_50_java_api_changes]]
|
||||
=== Java API changes
|
||||
|
||||
==== Transport client has been moved
|
||||
|
||||
The Java transport client has been moved to its own module which can be referenced using:
|
||||
|
||||
[source,xml]
|
||||
-----
|
||||
<dependency>
|
||||
<groupId>org.elasticsearch.client</groupId>
|
||||
<artifactId>transport</artifactId>
|
||||
<version>5.0.0-alpha5</version>
|
||||
</dependency>
|
||||
-----
|
||||
|
||||
The transport client is now created using the following snippet:
|
||||
|
||||
[source,java]
|
||||
-----
|
||||
TransportClient client = new PreBuiltTransportClient(Settings.EMPTY)
|
||||
.addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName("host1"), 9300))
|
||||
.addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName("host2"), 9300));
|
||||
-----
|
||||
|
||||
For more information please see the {javaclient}java-api.html[Java client documentation]
|
||||
|
||||
==== Count api has been removed
|
||||
|
||||
The deprecated count api has been removed from the Java api, use the search api instead and set size to 0.
|
||||
|
|
Loading…
Reference in New Issue