forked from 0x2620/pandora
only extract fulltext once
This commit is contained in:
parent
5efd7eadc6
commit
8b6607a74e
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue