Creating different instances of document store and keeping track of the data files uploaded in each of them #4645
Unanswered
Harshal1810
asked this question in
Questions
Replies: 1 comment 8 replies
-
Hi @Harshal1810 and thanks for using Haystack! Haystack abstracts document databases with components called Document Stores. There is one that's specific for Elasticsearch called ElasticsearchDocumentStore that you can use to connect to one index from a certain cluster. Whether you have different indexes in the same cluster or different clusters, the idea is that you create an instance of ds_one = ElasticsearchDocumentStore(
host=example.com,
index="documents"
)
# same cluster, different index
ds_two = ElasticsearchDocumentStore(
host=example.com,
index="reviews"
)
# different cluster
ds_three = ElasticsearchDocumentStore(
host=example.ai,
index="documents"
) Hope this helps! |
Beta Was this translation helpful? Give feedback.
8 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.
-
Hi all..I am new to Haystack.. I am using elasticsearch document store to create QA pipeline and question generation pipeline.. I am using FastAPI to create api-enpoints. I want to keep track of all the documents once we store them in elasticsearch document stores. I want to create different elasticsearch instances for different datasets for my project. Is there any way to do this? Has anyone did any project of this?
Beta Was this translation helpful? Give feedback.
All reactions