Add refresh_type param for Elasticsearch update_embeddings() (#630)

This commit is contained in:
Tanay Soni 2020-11-27 16:10:04 +01:00 committed by GitHub
parent ce6cba227f
commit fa55de2fab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"):
"""