0

Redited for clarification

Hello I have a django app using haystack and a solr backend to power searches (works well)

My task is as below
1. User uploads a set of concepts which are saved in a django table
2. This data should be made searchable, it cannot work unless you rebuild the index
3. In cases of production environment where there are several users , it is impractical to keep checking if there is new data by users , and index this manually using the command manage.py rebuild_index
4. Are there wasy to automate the manage.py tasks in your django app.

Thanks

user3404455
  • 420
  • 1
  • 3
  • 9

1 Answers1

0

Thanks to the comment section i refined my search and found this question , which had the answer i was looking for

Another option is django-celery

In summary

from haystack.management.commands import update_index
    update_index.Command().handle()
Community
  • 1
  • 1
user3404455
  • 420
  • 1
  • 3
  • 9