Replies: 2 comments
-
@stargeysir do the first block and second block live in the same file? |
Beta Was this translation helpful? Give feedback.
0 replies
-
If you call |
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.
-
Hey everyone,
I am trying to set up an OpenSearchDocumentStore from an existing OpenSearch index, but I'm not sure how to use
open_search_index_to_document_store()
properly. Is there a working example I can use for guidance? The docs here unfortunately only include the function call and I'm running into errors with my own attempts.My attempt so far:
First I create a new, empty index
Next I initialize an document store with haystack:
Next I want to transform this empty document_store into a new ds:
This, however, results in a connection error:
ConnectionError: ConnectionError(<urllib3.connection.HTTPSConnection object at 0x7fd403265670>: Failed to establish a new connection: [Errno 111] Connection refused) caused by: NewConnectionError(<urllib3.connection.HTTPSConnection object at 0x7fd403265670>: Failed to establish a new connection: [Errno 111] Connection refused)
. This warning also seems relevant:WARNING:elasticsearch:GET https://localhost:9200/ [status:N/A request:0.001s]
The host from thedocument_store
does not appear to have been passed on, as the host and port appear to have been reverted to https://localhost:9200/. When trying to force the host back to what I want I start going down the rabbit hole outlined in #4104 which ends with an error claiming that this is not a supported product.I don't understand what I'm doing wrong.
Beta Was this translation helpful? Give feedback.
All reactions