def METHOD_NAME(
        verbose: bool, force: bool, only_missing: bool, quiet: bool,
        commit_each: bool, package_id: str, clear: bool
):
    u''' Rebuild search index '''
    from ckan.lib.search import METHOD_NAME, commit
    try:
        METHOD_NAME(package_id,
                only_missing=only_missing,
                force=force,
                defer_commit=(not commit_each),
                quiet=quiet and not verbose,
                clear=clear)
    except Exception as e:
        error_shout(e)
    if not commit_each:
        commit()