if ($action == "fiedvalues") {
     $field = getRequestParam("field");
     $values = $solr->getFiedvalues($field);
     $res = '';
     if (!empty($values)) {
         foreach ($values[$field] as $key => $value) {
             if ($res != "") {
                 $res .= "|";
             }
             $res .= $key . ":" . $value;
         }
     }
 }
 if ($action == "gettagcloud") {
     $field = getRequestParam("field");
     $data = $solr->getCloud($field, 20, '', '', 0, 3, true, false);
     $tags = array();
     $aData = explode("|", $data);
     //$count=0;
     foreach ($aData as $value) {
         //if ($count < $maxsize)
         //{
         //if ($value != "")
         //{
         $aItem = explode(":", $value);
         //$tempTag[tag_name] = utf8_decode($aItem[0]);
         $tempTag["tag_name"] = $aItem[0];
         $tempTag["tag_count"] = $aItem[1];
         $tags[] = $tempTag;
         //}
         //}