You are here

public function SearchApiSolrConnection::getLuke in Search API Solr 7

Gets meta-data about the index.

Parameters

int $num_terms: Number of 'top terms' to return.

Return value

object A response object filled with data from Solr's Luke.

Overrides SearchApiSolrConnectionInterface::getLuke

2 calls to SearchApiSolrConnection::getLuke()
SearchApiSolrConnection::getFields in includes/solr_connection.inc
Get metadata about fields in the Solr/Lucene index.
SearchApiSolrConnection::setStats in includes/solr_connection.inc
Stores information about the Solr core in $this->stats.

File

includes/solr_connection.inc, line 382

Class

SearchApiSolrConnection
Represents a Solr server resource.

Code

public function getLuke($num_terms = 0) {
  if (!isset($this->luke[$num_terms])) {
    $this
      ->setLuke($num_terms);
  }
  return $this->luke[$num_terms];
}