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

Hardcoded request type GET #31

Closed
vglafirov opened this issue Jan 6, 2014 · 2 comments
Closed

Hardcoded request type GET #31

vglafirov opened this issue Jan 6, 2014 · 2 comments

Comments

@vglafirov
Copy link

Search API does not support POST requests.
_, data = self.transport.perform_request('GET', _make_path(index, doc_type, '_search')
This leads to wrong results when elasticsearch is behind loadbalancer or proxy. Usually GET does not contains request body.
http://stackoverflow.com/questions/978061/http-get-with-request-body
Please add POST to search API.

@honzakral
Copy link
Contributor

This is supported by specifying send_get_body_as='POST' when constructing the Elasticsearch instance.

See http://elasticsearch-py.readthedocs.org/en/latest/connection.html#transport for more details.

@vglafirov
Copy link
Author

Ah. Great, thanks

yurigo79 pushed a commit to taboola/elasticsearch-py that referenced this issue Sep 17, 2021
Co-authored-by: Axel Vivien <a.vivien@criteo.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants