@cronjobs.register
def reindex_kb():
 index_task.delay(DocumentMappingType, DocumentMappingType.get_indexable())

@ cronjobs . register def reindex_kb ( ) : index_task . delay ( DocumentMappingType , DocumentMappingType . get_indexable ( ) )
reindex wiki_document .