def METHOD_NAME():
    from django.core.management import call_command
    batch_size = os.getenv("SOLR_BATCH_SIZE", 500)
    call_command(
        "update_index", "--max-retries=5", "--batch-size={}".format(batch_size)
    )