You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In summary, it seems that when i create the Opensearch client, i need to create the host and port as a string and then put it in the list.
However, the official document says that i need to save it in dictionary form in the list. Please check this part to fix the bug.
The text was updated successfully, but these errors were encountered:
I believe host should just be the host, not <opensearch_domain>/_bulk, aka just <opensearch_domain>. I checked the docs but I am not seeing anything that has implied otherwise? Help me find what needs changing? Or contribute to https://github.com/opensearch-project/documentation-website directly?
There's code in the client that allows you to specify a URL in hosts that contain both a host and a port. This translates to host = 'ap-northeast-2.es.amazonaws.com' and port = 443 (not 9200, note the missing : as it adds it to _bulk9200). The path is just dropped when the URL is parsed.
Is there still a scenario that doesn't behave as you'd expect?
What is the bug?
As stated in the official document, errors occur in host and port when creating the Client.
https://opensearch.org/docs/latest/clients/python-low-level/
How can one reproduce the bug?
Error
What is the expected behavior?
I re-set the host in the following format and it works normally.
Do you have any additional context?
In summary, it seems that when i create the Opensearch client, i need to create the host and port as a string and then put it in the list.
However, the official document says that i need to save it in dictionary form in the list. Please check this part to fix the bug.
The text was updated successfully, but these errors were encountered: