From 05da7f71dd1acc692edcddb89d3b209c805c6be0 Mon Sep 17 00:00:00 2001 From: ju-gu <87523290+ju-gu@users.noreply.github.com> Date: Mon, 20 Sep 2021 14:29:33 +0200 Subject: [PATCH] changed delete_all_documents to delete_documents (#1477) --- tutorials/Tutorial5_Evaluation.ipynb | 4 ++-- tutorials/Tutorial5_Evaluation.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tutorials/Tutorial5_Evaluation.ipynb b/tutorials/Tutorial5_Evaluation.ipynb index 03c4e9ebe2..657ec9cc09 100644 --- a/tutorials/Tutorial5_Evaluation.ipynb +++ b/tutorials/Tutorial5_Evaluation.ipynb @@ -218,8 +218,8 @@ " clean_empty_lines=False,\n", " clean_whitespace=False\n", ")\n", - "document_store.delete_all_documents(index=doc_index)\n", - "document_store.delete_all_documents(index=label_index)\n", + "document_store.delete_documents(index=doc_index)\n", + "document_store.delete_documents(index=label_index)\n", "document_store.add_eval_data(\n", " filename=\"../data/nq/nq_dev_subset_v2.json\",\n", " doc_index=doc_index,\n", diff --git a/tutorials/Tutorial5_Evaluation.py b/tutorials/Tutorial5_Evaluation.py index 672872f0e6..9972d42d8c 100644 --- a/tutorials/Tutorial5_Evaluation.py +++ b/tutorials/Tutorial5_Evaluation.py @@ -63,8 +63,8 @@ def tutorial5_evaluation(): clean_empty_lines=False, clean_whitespace=False ) - document_store.delete_all_documents(index=doc_index) - document_store.delete_all_documents(index=label_index) + document_store.delete_documents(index=doc_index) + document_store.delete_documents(index=label_index) document_store.add_eval_data( filename="../data/nq/nq_dev_subset_v2.json", doc_index=doc_index,