$solr = apachesolr_get_solr();
$role_to_search = 4;
$query = array('q'=>'entity_type:user AND ts_role:'.$role_to_search);
$params = array(
'start'=>0,
'rows'=>5,
'fl'=>array('label','entity_id','sm_image_uri_field_user_image')
);
return $solr->search($query,$params);
$role_to_search = 4;
$query = array('q'=>'entity_type:user AND ts_role:'.$role_to_search);
$params = array(
'start'=>0,
'rows'=>5,
'fl'=>array('label','entity_id','sm_image_uri_field_user_image')
);
return $solr->search($query,$params);
Comments
Post a Comment