Added note recommending new client and changed POM dependency

This commit is contained in:
keithhc2 2021-10-21 16:34:14 -07:00
parent e39f18da89
commit 6a1cc2c276
2 changed files with 8 additions and 5 deletions

View File

@ -6,9 +6,10 @@ nav_order: 60
# OpenSearch Java high-level REST client # OpenSearch Java high-level REST client
The OpenSearch Java high-level REST client allows you to interact with your OpenSearch clusters and indices through Java methods and data structures rather than HTTP methods and JSON. Although the OpenSearch Java high-level REST client is still usable, we recommend that you use the [OpenSearch Java client]({{site.url}}{{site.baseurl}}/clients/java/), which replaces the existing Java high-level REST client.
{: .note}
You submit requests to your cluster using request objects, which allows you to create indices, add data to documents, or complete other operations with your cluster. In return, you get back response objects that have all of the available information, such as the associated index or ID, from your cluster. The OpenSearch Java high-level REST client lets you interact with your OpenSearch clusters and indices through Java methods and data structures rather than HTTP methods and JSON.
## Setup ## Setup

View File

@ -6,7 +6,9 @@ nav_order: 65
# Java client # Java client
The OpenSearch Java client allows you to interact with your OpenSearch clusters through Java methods and data structures rather than HTTP methods and raw JSON. For example, you can submit requests to your cluster using objects to create indices, add data to documents, or complete some other operation using the client's built-in methods. The OpenSearch Java client allows you to interact with your OpenSearch clusters through Java methods and data structures rather than HTTP methods and raw JSON.
For example, you can submit requests to your cluster using objects to create indices, add data to documents, or complete some other operation using the client's built-in methods.
## Setup ## Setup
@ -15,8 +17,8 @@ To start using the OpenSearch Java client, ensure that you have the following de
``` ```
<dependency> <dependency>
<groupId>org.opensearch.client</groupId> <groupId>org.opensearch.client</groupId>
<artifactId>opensearch-rest-client</artifactId> <artifactId>opensearch-java</artifactId>
<version>1.0.0</version> <version>0.1.0</version>
</dependency> </dependency>
``` ```