Skip to content

Commit 0af5011

Browse files
Update the Java client to newest version (#10294) (#10301)
1 parent bba2b30 commit 0af5011

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/vale/styles/Vocab/OpenSearch/Products/accept.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Amazon SageMaker
1010
AWS Secrets Manager
1111
Ansible
1212
Anthropic Claude
13+
Apache HttpClient 5 Transport
1314
Apache Kafka
1415
Auditbeat
1516
AWS Cloud

_clients/java.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ nav_order: 30
88

99
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 indexes, add data to documents, or complete some other operation using the client's built-in methods. For the client's complete API documentation and additional examples, see the [javadoc](https://www.javadoc.io/doc/org.opensearch.client/opensearch-java/latest/index.html).
1010

11-
This getting started guide illustrates how to connect to OpenSearch, index documents, and run queries. For the client source code, see the [opensearch-java repo](https://github.com/opensearch-project/opensearch-java).
11+
This getting started guide illustrates how to connect to OpenSearch, index documents, and run queries. For the client source code, see the [`opensearch-java` repo](https://github.com/opensearch-project/opensearch-java).
1212

1313
## Installing the client using Apache HttpClient 5 Transport
1414

@@ -18,7 +18,7 @@ To start using the OpenSearch Java client, you need to provide a transport. The
1818
<dependency>
1919
<groupId>org.opensearch.client</groupId>
2020
<artifactId>opensearch-java</artifactId>
21-
<version>2.8.1</version>
21+
<version>3.0.0</version>
2222
</dependency>
2323

2424
<dependency>
@@ -33,7 +33,7 @@ If you're using Gradle, add the following dependencies to your project:
3333

3434
```
3535
dependencies {
36-
implementation 'org.opensearch.client:opensearch-java:2.8.1'
36+
implementation 'org.opensearch.client:opensearch-java:3.0.0'
3737
implementation 'org.apache.httpcomponents.client5:httpclient5:5.2.1'
3838
}
3939
```
@@ -83,9 +83,9 @@ keytool -import <path-to-cert> -alias <alias-to-call-cert> -keystore <truststore
8383
```
8484
{% include copy.html %}
8585

86-
You can now point your Java client to the truststore and set basic authentication credentials that can access a secure cluster (refer to the sample code below on how to do so).
86+
You can now point your Java client to the truststore and set basic authentication credentials that can access a secure cluster (see the sample code in the next sections).
8787

88-
If you run into issues when configuring security, see [common issues]({{site.url}}{{site.baseurl}}/troubleshoot/index) and [troubleshoot TLS]({{site.url}}{{site.baseurl}}/troubleshoot/tls).
88+
If you run into issues when configuring security, see [common issues]({{site.url}}{{site.baseurl}}/troubleshoot/index/) and [troubleshoot TLS]({{site.url}}{{site.baseurl}}/troubleshoot/tls/).
8989

9090
## Sample data
9191

0 commit comments

Comments
 (0)