<gh_stars>1-10
from typing import Dict


def search(args: Dict) -> Dict:
    from openghg.retrieve import search as openghg_search

    skip_ranking = str(args["skip_ranking"]).lower()

    if skip_ranking == "true":
        args["skip_ranking"] = True
    else:
        args["skip_ranking"] = False

    results = openghg_search(**args)

    # Tell the SearchResults class that it should
    # retrieve data from the cloud
    results.cloud = True

    results_data = results.to_data()

    return {"results": results_data}

from typing import Dict


def search(args: Dict) -> Dict:
    from openghg.retrieve import search as openghg_search

    skip_ranking = str(args["skip_ranking"]).lower()

    if skip_ranking == "true":
        args["skip_ranking"] = True
    else:
        args["skip_ranking"] = False

    results = openghg_search(**args)

    # Tell the SearchResults class that it should
    # retrieve data from the cloud
    results.cloud = True

    results_data = results.to_data()

    return {"results": results_data}
# Tell the SearchResults class that it should # retrieve data from the cloud