-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add opensearch-java client support #227
Conversation
0471a42
to
87549ee
Compare
ce0fba3
to
643180b
Compare
b9ca04f
to
79d00b8
Compare
ead77f9
to
873b049
Compare
Any idea when this PR will be merged? |
@calvinch I will resume the work next week, needs new client favour + tests |
7cb4ba3
to
544699f
Compare
9bcb6f1
to
e5dfdcf
Compare
94eece3
to
001102c
Compare
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
@dblock I am wondering if you could help me getting this one in, 🙇 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I took a very cursory look at this and it LGTM, YOLO.
@@ -33,13 +33,18 @@ The Spring Data OpenSearch follows the release model of the Spring Data Elastics | |||
|
|||
### OpenSearch 2.x / 1.x client libraries | |||
|
|||
At the moment, Spring Data OpenSearch provides the possibility to use the `RestHighLevelCLient` to connect to OpenSearch clusters. | |||
|
|||
At the moment, Spring Data OpenSearch provides the possibility to use either `RestHighLevelCLient` or [OpenSearchClient](https://github.com/opensearch-project/opensearch-java) to connect to OpenSearch clusters. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: remove "At the moment, ", doesn't add any value, it's just documentation.
@@ -6,7 +6,7 @@ This sample project demonstrates the usage of the [Spring Data OpenSearch](https | |||
1. The easiest way to get [OpenSearch](https://opensearch.org) service up and running is by using [Docker](https://www.docker.com/): | |||
|
|||
```shell | |||
docker run -p 9200:9200 -e "discovery.type=single-node" opensearchproject/opensearch:2.4.0 | |||
docker run -p 9200:9200 -e "discovery.type=single-node" opensearchproject/opensearch:2.11.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Latest is 2.14.0, any reason why it's 2.11?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the last version before requiring the mandatory password, the command line changed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have a bug on upgrading?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have a bug on upgrading?
Not really, but command line change, so "defaults" won't work anymore
1. The easiest way to get [OpenSearch](https://opensearch.org) service up and running is by using [Docker](https://www.docker.com/): | ||
|
||
```shell | ||
docker run -p 9200:9200 -e "discovery.type=single-node" opensearchproject/opensearch:2.11.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe just use :latest
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would afraid to go with latest since we have changes that may prevent container from starting
Will update the sample integration with SpringBoot that I have as soon as we have this on maven central: https://github.com/aws-samples/opensearch-bootful Thanks for this! |
Hi @reta, One question, apart from the I have configured the starter as needed via the exclusion of the old client.
but then, I don´t know how to configure the client for spring-data as
Any hints? Thanks!! |
Hi @Neuw84 , You just need to replace
|
Thanks for the super quick reply, got it! |
Description
Add
opensearch-java
client supportIssues Resolved
Closes #19
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.