Commit Graph

36 Commits

Author SHA1 Message Date
Jonny Coddington 9156e32cfb
Updated incorrect `DeleteRequest` to `DeleteIndexRequest` (#6568)
Signed-off-by: Jonny Coddington <bottlerocketjonny@protonmail.com>
2024-03-04 12:09:33 -05:00
Daniel Widdis 93878a9e29
Fix Java client example (#6438)
The syntax provided for the second example at https://opensearch.org/docs/latest/clients/java/#initializing-the-client-with-ssl-and-tls-enabled-using-restclient-transport is invalid:
 - hostname and port order are reversed
 - the password field is a character array

The correct syntax is used earlier on the page for the Apache HTTP client version.

Signed-off-by: Daniel Widdis <widdis@gmail.com>
2024-02-19 12:56:03 -06:00
gwny b20a2d8463
fix java client sample error. (#5504)
* fix java client sample error.

* Revert "fix java client sample error."

* fix java sample error.

Signed-off-by: weinan_gao <weinan.gao@derbysoft.net>

---------

Signed-off-by: weinan_gao <weinan.gao@derbysoft.net>
Co-authored-by: weinan_gao <weinan.gao@derbysoft.net>
Co-authored-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com>
2023-11-28 16:16:00 -06:00
Taeik Lim 0ab38b0dda
[DOC] Dump up java client version (2.6.0 -> 2.8.1) (#5644)
Signed-off-by: Taeik Lim <sibera21@gmail.com>
2023-11-21 12:58:38 -06:00
kyeoneee e28942d1c1
[Fix typo] Fix typo on java.md sample code (#5567)
Fix typo on java.md sample code

Signed-off-by: kyeoneee <23250881+kiyeoneee@users.noreply.github.com>
Co-authored-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com>
2023-11-14 11:14:51 -06:00
Gautam Mishra 07762305f5
Add httpclient5 dependency (#5377)
Add httpclient5 dependency to use Apache HttpClient 5 Transport

Signed-off-by: Gautam Mishra <gautam.mishra@hotmail.com>
Co-authored-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com>
2023-11-08 15:34:52 -06:00
Samuel Valdes Gutierrez bd14c328b6
Fixing error in java client documentation for creating indexes (#5354)
Signed-off-by: Samuel Valdes Gutierrez <valdesgutierrez@gmail.com>
2023-10-26 14:17:00 -05:00
Vacha Shah 476e2d6422
Correcting the java client code snippets and updating java client version (#4789)
Signed-off-by: Vacha Shah <vachshah@amazon.com>
2023-08-15 16:00:32 -04:00
Will Li e826465046
remove redundant space (#4664)
Signed-off-by: Will Li <cuichen.li94@gmail.com>
2023-08-02 13:19:54 -04:00
Andriy Redko 3ff62a8a6c
Fix RestClientTransport code snippets (#4149)
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
2023-05-23 12:49:19 -04:00
kolchfa-aws 8463c8f278
Correct plugin capitalization (#3838)
* Correct plugin capitalization

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

* Revert cluster-stats because the name is in response

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

* Revert cluster-stats once more

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

---------

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>
2023-05-04 11:11:54 -04:00
Vacha Shah 9a3e49a2f2
Update java client version (#3753)
Signed-off-by: Vacha Shah <vachshah@amazon.com>
2023-04-11 17:09:42 -04:00
Andriy Redko 4e58f94861
Update OpenSearch Java Client documentation: update version, add ApacheHttpClient5Transport, 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>
2023-03-21 11:01:17 -05:00
Harsha Vamsi Kalluri 7fb9e5b848
Addd examples on how to connect with Sigv4 for AOS and AOSS (#3250)
* Addd examples on how to connect with Sigv4 for AOS and AOSS

Signed-off-by: Harsha Vamsi Kalluri <harshavamsi096@gmail.com>

* Changed some grammar

Signed-off-by: Harsha Vamsi Kalluri <harshavamsi096@gmail.com>

* Changed more grammar

Signed-off-by: Harsha Vamsi Kalluri <harshavamsi096@gmail.com>

---------

Signed-off-by: Harsha Vamsi Kalluri <harshavamsi096@gmail.com>
2023-03-09 09:47:18 -05:00
Nick Baughman 901bc63959
Replace `IndexRequest.Builder.value()` call with call to `.document()` to reflect current state of API (#2658)
Please double-check that this is correct. I'm using `org.opensearch.client:opensearch-java:2.2.0` and `org.opensearch.client:opensearch-rest-client:2.5.0` to try to create a client as per the docs. I noticed that the call to `IndexRequest.Builder.value()` does not work. I believe the correct method name is ``IndexRequest.Builder.document()`
2023-02-07 14:08:03 -05:00
kolchfa-aws bf0c4f8aad
Adds generated documentation to clients (#2458)
* Adds generated documentation to clients

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

* Reworded as per doc review

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>
2023-01-24 11:43:08 -05:00
kolchfa-aws c25ff903a1
Adds Rust client documentation (#2342)
* Adds Rust client documentation

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

* Added copy buttons and refactored more clients

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

* Incorporated doc review comments

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

* Incorporated doc review feedback

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

* One more fix - indexes

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

* Incorporated editorial comments

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>
2023-01-10 13:49:15 -05:00
kolchfa-aws 89f966a0f1
Refactors JS client helper documentation (#1358)
* Fix Circuit Breaker section in JS client docs

Fix #823

Signed-off-by: Robert Da Silva <mail@robdasilva.com>

* Add documentation for JS client bulk helper

Signed-off-by: Robert Da Silva <mail@robdasilva.com>

* Refactors js client helper documentation

* Incorporated tech review comments

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

* Incorporated doc review comments

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

* Update _clients/javascript/helpers.md

Co-authored-by: Alice Williams <88908598+alicejw-aws@users.noreply.github.com>

* Update _clients/javascript/helpers.md

Co-authored-by: Alice Williams <88908598+alicejw-aws@users.noreply.github.com>

* Update helpers.md

* Incorporated tech review feedback

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

* Implemented editorial comments

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

Signed-off-by: Robert Da Silva <mail@robdasilva.com>
Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>
Co-authored-by: Robert Da Silva <mail@robdasilva.com>
Co-authored-by: Alice Williams <88908598+alicejw-aws@users.noreply.github.com>
2022-10-11 12:08:28 -04:00
Vacha Shah 251c9cfffd Update the Java client version
Signed-off-by: Vacha Shah <vachshah@amazon.com>
2022-06-08 10:55:49 -07:00
keithhc2 be6f1ee6c8 More code tweaks
Signed-off-by: keithhc2 <keithhc2@users.noreply.github.com>
2022-02-15 13:15:11 -08:00
keithhc2 a3ed129d15 Tweaks
Signed-off-by: keithhc2 <keithhc2@users.noreply.github.com>
2022-02-15 13:12:01 -08:00
keithhc2 accc360c4a Fixed imports
Signed-off-by: keithhc2 <keithhc2@users.noreply.github.com>
2022-02-15 13:06:09 -08:00
keithhc2 f12a98cb4b Language tweaks
Signed-off-by: keithhc2 <keithhc2@users.noreply.github.com>
2021-12-09 15:50:01 -08:00
keithhc2 44711700ad Addressed comments
Signed-off-by: keithhc2 <keithhc2@users.noreply.github.com>
2021-12-09 15:48:48 -08:00
keithhc2 8d1dfa5040 Language tweaks
Signed-off-by: keithhc2 <keithhc2@users.noreply.github.com>
2021-12-09 11:18:01 -08:00
keithhc2 0ab79cbdb6 Added security instructions to Java clients
Signed-off-by: keithhc2 <keithhc2@users.noreply.github.com>
2021-12-08 15:00:01 -08:00
Keith Chan c41ff80be8
Merge pull request #306 from opensearch-project/java-client
Added OpenSearch dependency
2021-12-03 10:32:59 -08:00
keithhc2 b249b45f1d Added OpenSearch dependency and updated logstash and OpenSearch versions
Signed-off-by: keithhc2 <keithhc2@users.noreply.github.com>
2021-12-01 14:02:23 -08:00
keithhc2 f6250421a7 Spacing and title fixes 2021-10-22 14:22:15 -07:00
keithhc2 9022db56eb Added Gradle dependency 2021-10-22 11:57:44 -07:00
keithhc2 0d78441e76 Added finally block 2021-10-22 11:48:16 -07:00
keithhc2 62d037ae63 Added versioning to high-level rest and tweaked some code 2021-10-21 17:37:52 -07:00
keithhc2 6a1cc2c276 Added note recommending new client and changed POM dependency 2021-10-21 16:34:14 -07:00
Keith Chan a0590a400c
Added maven repo 2021-09-27 10:09:34 -07:00
Keith Chan 9861e07d7c
Added quotes around keystore password 2021-09-20 13:18:21 -07:00
keithhc2 9738b5c54b Finally adding new OpenSearch java client 2021-09-17 17:18:46 -07:00