Is this what you had in mind?

search_function = get_settings()['kotti.search_content'][0]
if 'options' in search_function.func_code.co_varnames:
    return search_function(search_term, request, options)
return search_function(search_term, request)