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_sort()
|
||||||
self.update_find()
|
self.update_find()
|
||||||
self.update_facets()
|
self.update_facets()
|
||||||
self.update_fulltext()
|
|
||||||
new = False
|
new = False
|
||||||
else:
|
else:
|
||||||
new = True
|
new = True
|
||||||
|
@ -506,6 +505,7 @@ class Document(models.Model, FulltextMixin):
|
||||||
self.oshash = ox.oshash(self.file.path)
|
self.oshash = ox.oshash(self.file.path)
|
||||||
self.save()
|
self.save()
|
||||||
self.delete_cache()
|
self.delete_cache()
|
||||||
|
self.update_fulltext()
|
||||||
return True, self.file.size
|
return True, self.file.size
|
||||||
|
|
||||||
return save_chunk(self, self.file, chunk, offset, name, done_cb)
|
return save_chunk(self, self.file, chunk, offset, name, done_cb)
|
||||||
|
|
Loading…
Reference in a new issue