Beispiel #1
0
 public function get_community_list_by_ids($ids)
 {
     if (empty($ids)) {
         return array();
     }
     $this->set_community_ids($ids);
     $this->limit = count($ids);
     $solr = new Solr_Solr();
     if ($this->_fl) {
         $solr->set_query_fl($this->_fl);
     }
     $solr->set_query_q($this->ids);
     $solr->set_query_wt("json");
     $solr->set_query_start($this->get_start_rows());
     $solr->set_query_rows($this->limit);
     $url = $this->get_community_solr_server();
     $url .= "select?" . $solr->build_query_uri();
     $result = Solr_Solr::get_solr_data($url);
     return $result;
 }