def METHOD_NAME(
    self,
    query,
    model_or_queryset,
    fields=None,
    operator=None,
    order_by_relevance=True,
):
    return {
        "query": query,
        "model_or_queryset": model_or_queryset,
        "fields": fields,
        "operator": operator,
        "order_by_relevance": order_by_relevance,
    }