Update OpenSearch Java Client documentation: update version, add ApacheHttpClient5Transport, fix code samples#3510
Merged
Naarcha-AWS merged 2 commits intoopensearch-project:mainfrom Mar 21, 2023
Conversation
…heHttpClient5Transport, fix code samples Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
Contributor
Author
|
@VachaShah @hdhalter @dblock please take a look, thank you! |
kolchfa-aws
approved these changes
Mar 17, 2023
Collaborator
kolchfa-aws
left a comment
There was a problem hiding this comment.
LGTM. Made a couple of suggestions. Thanks, @reta!
| 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). | ||
|
|
||
| ## Installing the client | ||
| ## Installing the client using Apache HttpClient 5 Transport |
Collaborator
There was a problem hiding this comment.
Suggested change
| ## Installing the client using Apache HttpClient 5 Transport | |
| ## Installing the client using Apache HttpClient 5 Transport | |
_clients/java.md
Outdated
|
|
||
| ## Installing the client | ||
| ## Installing the client using Apache HttpClient 5 Transport | ||
| To start using the OpenSearch Java client, you need to provide the transport. The default one is `ApacheHttpClient5TransportBuilder` and comes with the Java client. |
Collaborator
There was a problem hiding this comment.
Suggested change
| To start using the OpenSearch Java client, you need to provide the transport. The default one is `ApacheHttpClient5TransportBuilder` and comes with the Java client. | |
| To start using the OpenSearch Java client, you need to provide a transport. The default `ApacheHttpClient5TransportBuilder` transport comes with the Java client. To use the OpenSearch Java client with the default transport, add it to your `pom.xml` file as a dependency: |
_clients/java.md
Outdated
| ``` | ||
| {% include copy.html %} | ||
|
|
||
| If you're using Gradle, add the following dependencies to your project. |
Collaborator
There was a problem hiding this comment.
Suggested change
| If you're using Gradle, add the following dependencies to your project. | |
| If you're using Gradle, add the following dependencies to your project: |
_clients/java.md
Outdated
|
|
||
| ## Installing the client using RestClient Transport | ||
|
|
||
| The alternative way to create a Java client is by using `RestClient` based transport, ensure that you have the following dependencies in your project's `pom.xml` file: |
Collaborator
There was a problem hiding this comment.
Suggested change
| The alternative way to create a Java client is by using `RestClient` based transport, ensure that you have the following dependencies in your project's `pom.xml` file: | |
| Alternatively, you can create a Java client by using the `RestClient`-based transport. In this case, make sure that you have the following dependencies in your project's `pom.xml` file: |
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
Contributor
Author
Thanks @kolchfa-aws , comments addressed! |
Naarcha-AWS
approved these changes
Mar 21, 2023
opensearch-trigger-bot bot
pushed a commit
that referenced
this pull request
Mar 21, 2023
…heHttpClient5Transport, fix code samples (#3510) * Update OpenSearch Java Client documentation: update version, add ApacheHttpClient5Transport, fix code samples Signed-off-by: Andriy Redko <andriy.redko@aiven.io> * Address review comments Signed-off-by: Andriy Redko <andriy.redko@aiven.io> --------- Signed-off-by: Andriy Redko <andriy.redko@aiven.io> (cherry picked from commit 4e58f94) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
opensearch-trigger-bot bot
pushed a commit
that referenced
this pull request
Mar 21, 2023
…heHttpClient5Transport, fix code samples (#3510) * Update OpenSearch Java Client documentation: update version, add ApacheHttpClient5Transport, fix code samples Signed-off-by: Andriy Redko <andriy.redko@aiven.io> * Address review comments Signed-off-by: Andriy Redko <andriy.redko@aiven.io> --------- Signed-off-by: Andriy Redko <andriy.redko@aiven.io> (cherry picked from commit 4e58f94) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
opensearch-trigger-bot bot
pushed a commit
that referenced
this pull request
Mar 21, 2023
…heHttpClient5Transport, fix code samples (#3510) * Update OpenSearch Java Client documentation: update version, add ApacheHttpClient5Transport, fix code samples Signed-off-by: Andriy Redko <andriy.redko@aiven.io> * Address review comments Signed-off-by: Andriy Redko <andriy.redko@aiven.io> --------- Signed-off-by: Andriy Redko <andriy.redko@aiven.io> (cherry picked from commit 4e58f94) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Naarcha-AWS
pushed a commit
that referenced
this pull request
Mar 21, 2023
…heHttpClient5Transport, fix code samples (#3510) (#3537) * Update OpenSearch Java Client documentation: update version, add ApacheHttpClient5Transport, fix code samples * Address review comments --------- (cherry picked from commit 4e58f94) Signed-off-by: Andriy Redko <andriy.redko@aiven.io> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Naarcha-AWS
pushed a commit
that referenced
this pull request
Mar 21, 2023
…heHttpClient5Transport, fix code samples (#3510) (#3536) * Update OpenSearch Java Client documentation: update version, add ApacheHttpClient5Transport, fix code samples * Address review comments --------- (cherry picked from commit 4e58f94) Signed-off-by: Andriy Redko <andriy.redko@aiven.io> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Naarcha-AWS
pushed a commit
that referenced
this pull request
Mar 21, 2023
…heHttpClient5Transport, fix code samples (#3510) (#3535) * Update OpenSearch Java Client documentation: update version, add ApacheHttpClient5Transport, fix code samples * Address review comments --------- (cherry picked from commit 4e58f94) Signed-off-by: Andriy Redko <andriy.redko@aiven.io> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
vagimeli
pushed a commit
that referenced
this pull request
May 4, 2023
…heHttpClient5Transport, fix code samples (#3510) * Update OpenSearch Java Client documentation: update version, add ApacheHttpClient5Transport, fix code samples Signed-off-by: Andriy Redko <andriy.redko@aiven.io> * Address review comments Signed-off-by: Andriy Redko <andriy.redko@aiven.io> --------- Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
harshavamsi
pushed a commit
to harshavamsi/documentation-website
that referenced
this pull request
Oct 31, 2023
…heHttpClient5Transport, fix code samples (opensearch-project#3510) * Update OpenSearch Java Client documentation: update version, add ApacheHttpClient5Transport, fix code samples Signed-off-by: Andriy Redko <andriy.redko@aiven.io> * Address review comments Signed-off-by: Andriy Redko <andriy.redko@aiven.io> --------- Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Update OpenSearch Java Client documentation: update version, add ApacheHttpClient5Transport, fix code samples
Issues Resolved
Closes opensearch-project/opensearch-java#409
Checklist
For more information on following Developer Certificate of Origin and signing off your commits, please check here.