protected function Drupal_Apache_Solr_Service::setLuke in Apache Solr Search 6.2
Same name and namespace in other branches
- 5.2 Drupal_Apache_Solr_Service.php \Drupal_Apache_Solr_Service::setLuke()
- 6 Drupal_Apache_Solr_Service.php \Drupal_Apache_Solr_Service::setLuke()
Sets $this->luke with the meta-data about the index from admin/luke.
1 call to Drupal_Apache_Solr_Service::setLuke()
- Drupal_Apache_Solr_Service::getLuke in ./
Drupal_Apache_Solr_Service.php - Get meta-data about the index.
File
- ./
Drupal_Apache_Solr_Service.php, line 63
Class
Code
protected function setLuke($num_terms = 0) {
if (empty($this->luke[$num_terms])) {
$url = $this
->_constructUrl(self::LUKE_SERVLET, array(
'numTerms' => "{$num_terms}",
'wt' => self::SOLR_WRITER,
));
$this->luke[$num_terms] = $this
->_sendRawGet($url);
cache_set($this->luke_cid, $this->luke, 'cache_apachesolr');
}
}