DocumentStore - Reusing the same opensearch client #8365
Unanswered
quasi-deus
asked this question in
Questions
Replies: 0 comments
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.
-
Hello. So this is in regards to haystack-core-integrations; the opensearch/documentstore module. I am essentially trying to use the same Opensearch client to use for different OpensearchDocumentStore objects. I understand that allowing modification of the index for a given document store would be antipattern with the DocumentStore component, but
I want to know if it is possible to allow manually setting opensearch client; especially if it is associated with a cloud service. This way I can use the same opensearch http client and have a factory for different documentstore indicies. I don't mind contributing a PR for it, since its simple enough, but from a design perspective, is this considered acceptable?
Beta Was this translation helpful? Give feedback.
All reactions