Opensearch 2.7.x client documentation

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
OpenSearch 2.7.x

Describe the issue:

Hi, while I have been checking the documentation of opensearch clients for 2.7.x on Java client - OpenSearch documentation I have seen that some of the examples (eg Java client - OpenSearch documentation) are using
org.apache.hc.client5 and org.apache.hc.core5 packages, but sample program on Java client - OpenSearch documentation is done with org.apache.http. packages.
I think this is leading a developer to a confusion of which libraries to use, because when I try to go with first example , my code can not build, but the documentation does not state that I may need a third party dependencies to run the example which uses the hc packages.
Also, It would be good if we could see a complete example on the create client part of the developer guide.
opensearch-java/ at main · opensearch-project/opensearch-java · GitHub

implementation ‘org.opensearch.client:opensearch-rest-client:2.7.0’
implementation ‘org.opensearch.client:opensearch-java:2.4.0’

PS: There is an extra space on documented gradle script between rest-client and 2.7.0 on the documentation

dependencies {
  **implementation 'org.opensearch.client:opensearch-rest-client: 2.7.0'**
  implementation 'org.opensearch.client:opensearch-java:2.4.0'

This is a very good point. Feel free to raise this as an issue in the opensearch-java github repository.

just opened one



This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.