mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-11-02 02:39:51 +00:00
Added explicit refresh call during refresh_type is false in update embedding. (#1259)
Co-authored-by: vishwaspai <vishwas.pai@emplay.net>
This commit is contained in:
parent
90f826e95e
commit
2f93c2ddd5
@ -904,6 +904,9 @@ class ElasticsearchDocumentStore(BaseDocumentStore):
|
||||
if index is None:
|
||||
index = self.index
|
||||
|
||||
if self.refresh_type == 'false':
|
||||
self.client.indices.refresh(index=index)
|
||||
|
||||
if not self.embedding_field:
|
||||
raise RuntimeError("Specify the arg `embedding_field` when initializing ElasticsearchDocumentStore()")
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user