Skip to content
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

[FEATURE] SearchResponse doesn't include status i.e. RestStatus #1009

Closed
dishatkr opened this issue May 31, 2024 · 2 comments
Closed

[FEATURE] SearchResponse doesn't include status i.e. RestStatus #1009

dishatkr opened this issue May 31, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@dishatkr
Copy link

Is your feature request related to a problem?

I’m moving from restHighLevelClient V2.5 to Openserach java Client V2.5
In the SearchResponse of RestHighLevelClient, there is a method to know the status Code returned by Opensearch.

Do you have any additional context?

From RestHighLevelClient - https://github.com/opensearch-project/OpenSearch/blob/fffd1010e88baf332f2dd4169d69bfcf0a869780/server/src/main/java/org/opensearch/action/search/SearchResponse.java#L199

We don’t see any similar method in the SearchResponse of Opensearch Java Client. What could be the alternative to get the status in this case ?
https://github.com/opensearch-project/opensearch-java/blob/db50b7d6089c6fbc988736863b36368d2a8cdad4/java-client/src/main/java/org/opensearch/client/opensearch/core/SearchResponse.java

@dishatkr dishatkr added enhancement New feature or request untriaged labels May 31, 2024
@dblock
Copy link
Member

dblock commented May 31, 2024

I think this is a dup of #824. AFAIK there's no current way to do this and an implementation would be much appreciated! Note that the generic client that was added recently does have access to the entire request/response, which may be an acceptable workaround.

@dblock dblock removed the untriaged label Jun 21, 2024
@dblock
Copy link
Member

dblock commented Jun 21, 2024

Closing as dup.

@dblock dblock closed this as completed Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants