Replies: 1 comment
-
Same problem. I am trying to import the indexed document from OpenSearch to DocumentStore. I noticed headers.get("x-elastic-product", None) != "Elasticsearch" on line 665 in transport.py might be the reason why it fails. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am running into unexpected behavior when trying to use an existing OpenSearch index as a DocumentStore.
First I set a DocumentStore object:
When using this object for creating a new document_store with
open_search_index_to_document_store()
, the process fails due to open_search_index_to_document_store() defaulting back tohttps://localhost:9200/
:This results in:
NewConnectionError(<urllib3.connection.HTTPSConnection object at 0x7eff75f442b0>: Failed to establish a new connection: [Errno 111] Connection refused)
. Due toWARNING:elasticsearch:GET https://localhost:9200/ [status:N/A request:0.001s]
I presume that the proper host fromdocument_store
was not passed on.To rectify this I do it manually:
This results in
AuthenticationException: AuthenticationException(401, 'Unauthorized')
, meaning that I need to add my credentials as well, which I do:And this results in
UnsupportedProductError: The client noticed that the server is not Elasticsearch and we do not support this unknown product
.This is where I am at my wits end. I am definitely using a OpenSearch server and do not understand why this function suddenly expects ElasticSearch.
Does anyone know what is happening here? I suspect that I'm using the classes wrong, but do not understand how to do it properly without a working example.
Beta Was this translation helpful? Give feedback.
All reactions