Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Commit

Permalink
update index after import
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaswinkler committed Dec 22, 2020
1 parent ebcb2cf commit 0fa3c31
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/documents/management/commands/document_importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ def handle(self, *args, **options):

self._import_files_from_manifest()

print("Updating search index...")
call_command('document_index', 'reindex')

@staticmethod
def _check_manifest_exists(path):
if not os.path.exists(path):
Expand Down

0 comments on commit 0fa3c31

Please sign in to comment.