From 8b6607a74e039a2d1da9a2df3e2b0ead79d2a779 Mon Sep 17 00:00:00 2001 From: j Date: Mon, 2 Dec 2019 19:16:13 +0100 Subject: [PATCH] only extract fulltext once --- pandora/document/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/document/models.py b/pandora/document/models.py index 0c653fa5c..56f46600b 100644 --- a/pandora/document/models.py +++ b/pandora/document/models.py @@ -280,7 +280,6 @@ class Document(models.Model, FulltextMixin): self.update_sort() self.update_find() self.update_facets() - self.update_fulltext() new = False else: new = True @@ -506,6 +505,7 @@ class Document(models.Model, FulltextMixin): self.oshash = ox.oshash(self.file.path) self.save() self.delete_cache() + self.update_fulltext() return True, self.file.size return save_chunk(self, self.file, chunk, offset, name, done_cb)