opensearch-project / OpenSearch

🔎 Open source distributed and RESTful search engine.
https://opensearch.org/docs/latest/opensearch/index/
Apache License 2.0
9.54k stars 1.75k forks source link

[META] Deprecate REST client #5424

Open dblock opened 1 year ago

dblock commented 1 year ago

Is your feature request related to a problem? Please describe.

In https://github.com/opensearch-project/opensearch-java/issues/262 we are removing the dependency on OpenSearch (this repo). I propose to loudly deprecate REST client code in this repo and require users to migrate to a dependency on opensearch-java. This would significantly reduce the amount of projects that depend on OpenSearch core by all the ones that depend on the REST APIs.

Describe the solution you'd like

  1. Deprecate a large portion of/all org.opensearch.client namespace in 2.x.
  2. Keep it in 3.0.0 but make the respective transport optional in opensearch-java
  3. Remove it in 4.0.

Dependencies:

Related:

reta commented 1 year ago

@dblock Regarding the suggested plan, it might be a bit aggressive:

dblock commented 1 year ago

@reta I think it's a sensible plan. thank you.

wbeckler commented 1 year ago

I've proposed removing documentation of the high-level rest client from the organization documentation. There hasn't been any feedback on the proposal: https://github.com/opensearch-project/documentation-website/issues/2010

manirudh78 commented 1 year ago

Hello all, Hope all is well. Based on the comments in this ticket The Opensearch-Hadoop will support the scala client for opensearch? Yes

Response is highly appreciated. Thanks

wbeckler commented 1 year ago

@manirudh78 I'm not sure I understand your comment. Is it possibly in the wrong repo?

dblock commented 1 year ago

I think it was meant for https://github.com/opensearch-project/opensearch-hadoop. I don't see why that wouldn't work in Scala.