[Search] create mygpo.search app
[mygpo.git] / mygpo / search / management / commands / create-es-index.py
blob6337c46914b2684dd50485c7127e84915faea3ae
2 """ Create the Elasticsearch index """
4 import sys
6 from django.core.management.base import BaseCommand
8 from mygpo.search.index import create_index
11 class Command(BaseCommand):
13 help = sys.modules[__name__].__doc__
15 def handle(self, *args, **options):
16 create_index()