You are here

public function SarniaSearchApiSolrField::__construct in Sarnia 7

Constructor.

Parameters

stdClass $field: A field object from Solr's "Luke" servlet.

Overrides SearchApiSolrField::__construct

File

./solr_field.inc, line 20

Class

SarniaSearchApiSolrField
Extend the logic around Solr field schema information.

Code

public function __construct(SearchApiSolrField $field, $name = NULL) {
  $this->field = $field->field;
  $this->name = $name;
}