You are here

public function SearchApiSolrField::getSchema in Search API Solr 7

Gets an array of field properties.

Return value

array An array of properties describing the solr schema. The array keys are single-character codes, and the values are human-readable labels. This will be a subset of the SearchApiSolrField::schemaLabels array.

13 calls to SearchApiSolrField::getSchema()
SearchApiSolrField::isBinary in includes/solr_field.inc
Determines whether this field is binary.
SearchApiSolrField::isCompressed in includes/solr_field.inc
Determines whether this field is compressed.
SearchApiSolrField::isIndexed in includes/solr_field.inc
Determines whether this field is indexed.
SearchApiSolrField::isLazy in includes/solr_field.inc
Determines whether this field is lazy-loaded.
SearchApiSolrField::isMultivalued in includes/solr_field.inc
Determines whether this field is multi-valued.

... See full list

File

includes/solr_field.inc, line 83

Class

SearchApiSolrField
Logic around Solr field schema information.

Code

public function getSchema() {
  if (!isset($this->schema)) {
    foreach (str_split(str_replace('-', '', $this->field->schema)) as $key) {
      $this->schema[$key] = isset(self::$schemaLabels[$key]) ? self::$schemaLabels[$key] : $key;
    }
  }
  return $this->schema;
}