Skip to content

Exportindex

snoop.data.management.commands.exportindex #

Export elasticsearch index.

Classes#

Command #

Export elasticsearch index

Methods#
handle(self, *args, **options) #

Runs snoop.data.indexing.export_index.

Warning

This probably requires an update, since there's no option to select a collection.

Source code in snoop/data/management/commands/exportindex.py
def handle(self, *args, **options):
    """Runs [snoop.data.indexing.export_index][].

    Warning:
        This probably requires an update, since there's no option to select a collection.
    """

    logging_for_management_command(options['verbosity'])
    indexing.export_index()