def vespaSearch(params):
    'Search Function for Vespa:\n        \n        \n    Arguments:\n            params {dict} -- [Dict containings all parameters for the Vespa Search]\n                List of accepted params:\n                    :param query: User query to search (required)\n                    :param toDate: Maximum datelimit for the publication date (optionnal, default = now() )\n                    :param fromDate: Minimum datelimit for the publication date (optionnal)\n                    :param count: Number of document to retrieve (optionnal, default = 10)\n                    :param offset: Offset for the retrieved documents ( optionnal, default = 0)\n                    :param source: Filter for the accepter hostsites (optionnal)\n    '
    result = None
    if ('query' not in params):
        return None
    else:
        yql = GenerateNewsYql(params)
        try:
            print(((((((('http://' + VESPA_IP) + ':') + VESPA_PORT) + '/search/?query=') + params['query']) + yql) + ';'))
            result_request = requests.get(((((((('http://' + VESPA_IP) + ':') + VESPA_PORT) + '/search/?query=') + params['query']) + yql) + ';'))
            if (result_request.status_code == 200):
                result = result_request.json()
        except Exception as e:
            print(e)
            return None
    return result
Search Function for Vespa:
    
    
Arguments:
        params {dict} -- [Dict containings all parameters for the Vespa Search]
            List of accepted params:
                :param query: User query to search (required)
                :param toDate: Maximum datelimit for the publication date (optionnal, default = now() )
                :param fromDate: Minimum datelimit for the publication date (optionnal)
                :param count: Number of document to retrieve (optionnal, default = 10)
                :param offset: Offset for the retrieved documents ( optionnal, default = 0)
                :param source: Filter for the accepter hostsites (optionnal)
def vespaSearch(params):
    'Search Function for Vespa:\n        \n        \n    Arguments:\n            params {dict} -- [Dict containings all parameters for the Vespa Search]\n                List of accepted params:\n                    :param query: User query to search (required)\n                    :param toDate: Maximum datelimit for the publication date (optionnal, default = now() )\n                    :param fromDate: Minimum datelimit for the publication date (optionnal)\n                    :param count: Number of document to retrieve (optionnal, default = 10)\n                    :param offset: Offset for the retrieved documents ( optionnal, default = 0)\n                    :param source: Filter for the accepter hostsites (optionnal)\n    '
    result = None
    if ('query' not in params):
        return None
    else:
        yql = GenerateNewsYql(params)
        try:
            print(((((((('http://' + VESPA_IP) + ':') + VESPA_PORT) + '/search/?query=') + params['query']) + yql) + ';'))
            result_request = requests.get(((((((('http://' + VESPA_IP) + ':') + VESPA_PORT) + '/search/?query=') + params['query']) + yql) + ';'))
            if (result_request.status_code == 200):
                result = result_request.json()
        except Exception as e:
            print(e)
            return None
    return result