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:
threepointsomeone 2021-07-13 20:29:09 +05:30 committed by GitHub
parent 90f826e95e
commit 2f93c2ddd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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