Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an ability to select an index after initializing the document_store in Elasticsearch 8 #617

Closed
PAHXO opened this issue Mar 23, 2024 · 2 comments

Comments

@PAHXO
Copy link

PAHXO commented Mar 23, 2024

We used to select indices at runtime i.e. when using the retriever or writing documents into the document_store.
I used to be able to that easily. in haystack 1.x. Now I cannot I.

I have lots of indices, and I'd like to change them quite often.

My current workaround is to combine the retriever and the document_store into a function so I can one line them in my code.

I mainly use Elasticsearch 8.

@PAHXO PAHXO added the feature request Ideas to improve an integration label Mar 23, 2024
@anakin87
Copy link
Member

Hello!

Are there problems with creating new Document Store instances when changing indexes?

In Haystack 2.x, in general, a Document Store maps to an index (or a similar abstraction in other DBs).

@PAHXO
Copy link
Author

PAHXO commented Mar 28, 2024

Are there problems with creating new Document Store instances when changing indexes?
No.

Now that I look into. I think the way it is now is OK.
Maybe I was just startled by how it was in 1.x compared to 2.0.

@PAHXO PAHXO closed this as completed Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants