You are here

protected function Drupal_Apache_Solr_Service::setLuke in Apache Solr Search 6

Same name and namespace in other branches
  1. 5.2 Drupal_Apache_Solr_Service.php \Drupal_Apache_Solr_Service::setLuke()
  2. 6.2 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 62

Class

Drupal_Apache_Solr_Service

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');
  }
}