Example #1
0
function _solr_select($params)
{
    $params['wt'] = 'json';
    $url = $GLOBALS['cfg']['solr_endpoint'] . "select/";
    $str_params = _solr_build_query($params, "stringify");
    $http_rsp = http_post($url, $str_params);
    return _solr_parse_response($http_rsp);
}
Example #2
0
function _solr_select($params, $more = array())
{
    $defaults = array('solr_endpoint' => $GLOBALS['cfg']['solr_endpoint'], 'is_solr4' => 1);
    $more = array_merge($defaults, $more);
    $endpoint = $more['solr_endpoint'];
    $url = "{$endpoint}select/";
    $params['wt'] = 'json';
    $str_params = _solr_build_query($params, "stringify");
    $http_rsp = http_post($url, $str_params);
    return _solr_parse_response($http_rsp);
}