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] Add support for GET _search API requests #890

Open
monica-cira opened this issue Feb 3, 2025 · 0 comments
Open

[FEATURE] Add support for GET _search API requests #890

monica-cira opened this issue Feb 3, 2025 · 0 comments
Labels
enhancement New feature or request untriaged Need triage

Comments

@monica-cira
Copy link

Is your feature request related to a problem?

An OpenSearch instance may be behind a Firewall that disallows HTTP methods that perform write operations (POST, DELETE, etc.). In this case, the "GET _search" endpoint can be used in order to perform searches against the cluster. The current functionality of the opensearchpy.client.search method hardcodes the POST method, however the same search behaviour can be achieved with the GET method: https://opensearch.org/docs/latest/api-reference/search/

What solution would you like?

Either a new search method that utilizes the GET method in the _search endpoint, or the ability to pass a parameter to the search method that allows configuring either GET or POST in the API call as the method.

What alternatives have you considered?

In order to interact with OpenSearch instances that have restrictions around HTTP methods, then this client library can't be used.

Do you have any additional context?

@monica-cira monica-cira added enhancement New feature or request untriaged Need triage labels Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request untriaged Need triage
Projects
None yet
Development

No branches or pull requests

1 participant