mirror of
https://github.com/deepset-ai/haystack.git
synced 2026-01-08 04:56:45 +00:00
Add refresh_type param for Elasticsearch update_embeddings() (#630)
This commit is contained in:
parent
ce6cba227f
commit
fa55de2fab
@ -619,7 +619,7 @@ class ElasticsearchDocumentStore(BaseDocumentStore):
|
||||
}
|
||||
doc_updates.append(update)
|
||||
|
||||
bulk(self.client, doc_updates, request_timeout=300)
|
||||
bulk(self.client, doc_updates, request_timeout=300, refresh=self.refresh_type)
|
||||
|
||||
def add_eval_data(self, filename: str, doc_index: str = "eval_document", label_index: str = "label"):
|
||||
"""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user